Skip to content

This is the personal CRUD api project using python web framework django.

License

Notifications You must be signed in to change notification settings

iiii4966/django-test

Repository files navigation

Django project

This is the personal CRUD api project using python web framework django.

Built With

Prerequisites

  • 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"

Installation

  1. Clone the repo
    git clone https://github.com/iiii4966/django-test.git
  2. Install packages
    if poetry installed
    poetry install
    If there is an error below while installing the dependencies,
    The current project's Python requirement (2.7.17) is not compatible
    with some of the required packages Python requirement:
    ...
    Change the poetry file header in the poetry installation path
    ~/.poetry/bin/poetry
    #!/usr/bin/env python -> #!/usr/bin/env python3 

Usage

If you're using poetry as a virtualenv, execute the command below.

poetry shell

run migration

make migrate

run server

make run

run test

make test

run docker

# local
make docker-local

# prod
make docker-prod

License

Distributed under the DSF License. See LICENSE for more information.

TODO

  • docker-compose with nginx, postgresql

About

This is the personal CRUD api project using python web framework django.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published