Python Django Todo Application
- Res.gister url : {host_ip}/portal/register/
- Login url: {host_ip}/portal/login/
- Index page: {host_ip}/portal/index/
- Subtasks and status: {host_ip}/portal/todo-tasks/{tasklist}
- Get all tasks with subtasks: {host_ip}/portal/todo/ : methods: get(), post()
- Create main task
- Add subtasks
- Change status of subtasks ("Open", "In-Progress", "Done")
- Search in main tasks by title
On prem:
- Create virtual env
- Clone project in env
- install requirments.txt
pip install -r requirements.txt
- Setup django buildin models
python manage.py migrate
- Create tables for application models
python manage.py makemigrations todo python manage.py migrate todo
- Run server
python manage.py runserver 0.0.0.0:8000
On Docker:
- Make sure docker service running
- build image using Dockerfile provided in project
docker build -t todoapp .
- Once image build complete check for the latest build in docker image repo (local). and get image id
docker images -a
- Run docker container with image id
docker run -p {system port : 80}:{exposed port of container: 8000} -itd {image id}
- Check logs of system:
docker logs {container id}