- Clone the repository from GitHub:
git clone https://github.com/Shabesbro/Dimensionless.git cd todo
- Use the
requirements.txt
file to install all necessary libraries:pip install -r requirements.txt
- Start the Django development server:
python manage.py runserver
- Open your browser and go to:
http://127.0.0.1:8000/
- Run tests using:
python manage.py test
If you just want to test the project without setting up a new database, the project is preconfigured to use the following test and development database URLs:
- Test Database URL:
mongodb+srv://user:[email protected]/testdb?retryWrites=true&w=majority&appName=Cluster0&authSource=admin
- Development Database URL:
mongodb+srv://user:[email protected]/todo?retryWrites=true&w=majority&appName=Cluster0&authSource=admin
- Simply run the project as outlined above without changing the database settings.
If you want to create and use your own database, follow these steps:
-
Update Database Configuration
- Open
settings.py
and replace theDATABASES
section with your database connection details:DATABASES = { 'default': { 'ENGINE': 'djongo', 'NAME': 'your_database_name', 'CLIENT': { 'host': 'your_host', 'port': 27017, 'username': 'your_username', 'password': 'your_password', } } }
- Open
-
Apply Migrations
- Set up the database schema:
python manage.py migrate
- Set up the database schema:
-
Run the Project
- Start the server:
python manage.py runserver
- Start the server: