A simple todo app that allows users to manage their tasks.
- Python 3.8
- Django
- Django Rest Framework
- PostgreSQL
- Svelte
- Docker
- Install Docker and docker compose.
- Open a terminal and navigate to the project root folder.
- Run the following
docker-composecommands:
docker-compose build
docker-compose up -d
- Apply migrations by using
docker-compose exec web python manage.py migrate. - The backend project is running on http://localhost:8000.
- To find the frontend network address run
docker-compose logscommand. In my case it is http://172.28.0.2:5000.
- Install Python3.8.
- Install PostgreSQL and start it.
- Open a terminal and navigate to the project root folder.
- Set up virtual environment: tutorial.
- Install necessary packages:
pip install requirements.txt. - Configure database in
config/settings.py - Run next commands:
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver
- The backend project is running on http://localhost:8000
- Install Node.js
- To run frontend run next commands:
npm install
npm run dev
- The frontend is running on http://localhost:5000