git clone https://github.com/Fingerstyle-Taiwan/django-backend.git
cd django-backend
make dev/build
This command will launch django server and database. See http://127.0.0.1:8000/admin
make dev/up
If you get a database error after make up, just try the code below, it will remove the database from disk, then rebuild volume again.
make dev/down
make dev/database-init
make dev/up
make dev/superuser
See http://127.0.0.1:8000/docs
make dev/down
make help
Available targets:
certbot/init SSL certification initialization
dev/build Build docker image for development
dev/check Run test and lint
dev/create-app Create a Dajango Application used by "make dev/create-app NAME=YouAppNameHere"
dev/database-init Initialization for docker volumes
dev/down Stop development containers
dev/lint Run code style tool
dev/migrate Migrate for database
dev/migrate-init Initialize migrations for database
dev/migrations Make migrations for database
dev/superuser Create a superuser
dev/test Run unit test
dev/up Run development containers
monitor/down Stop monitor service containers
monitor/up Start monitor service containers
prod/down Stop production containers
prod/logs Peek logs
prod/rebuild Rebuild Django app image
prod/restart Rebuild Django app
prod/superuser Create a superuser
prod/up Run production containers
- lint
make dev/lint
- test
make dev/test
- create a django app
make dev/create-app NAME=YouAppName
- create superuser
make dev/superuser
- migrations
make dev/migrations
- migrate
make dev/migrate
Please use commitizen-tools to submit your commit message.
cz c
Docker is a software platform that allows you to quickly build, test, and deploy applications.
Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files.
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design.
PostgreSQL is a powerful, open source object-relational database system with over 30 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.
In the case of a bug report, bugfix or a suggestions, please feel very free to open an issue.
Pull requests are always welcome, and I'll do my best to do reviews as fast as I can.
This project is licensed under the MIT License
- Contact us on Discord
- If appropriate, open an issue on GitHub
Django REST Framework - Django REST framework is a powerful and flexible toolkit for building Web APIs.