This is the personal CRUD api project using python web framework django.
- Python 3.8.6 or higher
python --version
- poetry install
- If you want to use the poetry tool, install it from the link below.
https://python-poetry.org/docs/
- after install, set the below on the .bashrc or .zshrc and so on
plugins=( ... poetry ) export PATH="$HOME/.poetry/bin:$PATH"
- Clone the repo
git clone https://github.com/iiii4966/django-test.git
- Install packages
if poetry installedIf there is an error below while installing the dependencies,poetry install
Change the poetry file header in the poetry installation pathThe current project's Python requirement (2.7.17) is not compatible with some of the required packages Python requirement: ...
~/.poetry/bin/poetry
#!/usr/bin/env python -> #!/usr/bin/env python3
If you're using poetry as a virtualenv, execute the command below.
poetry shell
make migrate
make run
make test
# local
make docker-local
# prod
make docker-prod
Distributed under the DSF License. See LICENSE
for more information.
- docker-compose with nginx, postgresql