- setup phpmyAdmin on my local machine
- Load db and tables from sql file
- setup default django project
- edit django settings to connect to phpmyAdmin MySQL database
- fulfill task
- Make, Docker, and Docker Compose
- Clone the repo
cd
into the repo- Duplicate the file named ".env.example", rename the new copy to ".env".
- Edit the content of the
.env
file as you want. At this point you'll also want to edit theenvironment
section of thepostgres
service in thedocker-compose.yml
file to reflect your choice of database. Ensure you correlate this change with the content of the.env
file. - Perform migrations with
make migrate
- Create your superuser account with
make createsuperuser
. Fill in required details. Note that your password won't display on the screen. Type blindly and trust everything to work. - To start the server, run
make up
- You can start making requests by visiting http://127.0.0.1:8000
- Edit the template as you want for your app
- Create a database with Postgres through the
psql
command. Can't remember the whole steps and I'm too tired to google it, it's why I said you should use Docker. - Duplicate the file named ".env.example", rename the new copy to ".env".
- Edit the content of the
.env
file as you want, especially to reflect your choice of database. Ensure you correlate this change with the results of of the first step - Perform migrations with
python manage.py migrate
. You still don't want to use Docker?! - To start the server, run
gunicorn --bind 0.0.0.0:8000 config.wsgi:application
. Lol, I told you to use Docker. - You can start making requests by visiting http://127.0.0.1:8000
- Edit the template as you want for your app (switch to Docker)
Note: The majority of the docs is found in the Contributions section. Check it if (when) you need help.
Raise an issue.
-
Q: Why do you insiste I use Docker?
A: It is actually easier to use and setup
-
Q: Why do you use
master
as the default branch?A: To make the codebase look older and more matured than it actually is. Don't lie, you respect
master
more thanmain
(what those NodeJS children love).