A to-do list, powered by Django (v4.2.9)
This website consists of these page:
A list that contains several activities, including their status (Completed
/Incomplete
)
Before running the app, please make sure you have following software installed in your machine:
- Create a virtual environment
python3 -m venv .venv
- Navigate to this directory, then activate the virtual environment
source .venv/bin/activate
- Install required packages
pip3 install -r requirements.txt
- Make a new file named
.env
, then copy.env.example
and paste the content into it
cp .env.example .env
After that, fill .env
with appropriate values
- Create a database (Make sure you have MySQL installed in your machine beforehand)
python3 mydb.py
- Apply database migration
python3 manage.py migrate
- Create a superuser of Django admin panel
python3 manage.py createsuperuser
You will then by asked several questions, such as username
, email
, and password
of the superuser.
- Finally, run the server!
python3 manage.py runserver
- Voila! Visit
http://localhost:8000
on your browser
- Add edit and delete buttons to modify activities
- Put available routes in the docs
- Make a Dockerfile
- Generate
requirements.txt
✅