Requirements:
- Python 3.6 runtime
- Django 2.1.2
- Other dependencies in
Pipfile
For Vuetify UI build steps, follow this
Procedure:
- Install python in your environment(pre-installed on Ubuntu).
- Navigate to the cloned repository.
cd <project_directory_name> # woc - Install
pipenvfor dependency managementpip install pipenv - Copy
.env.exampleto.envcp .env.example .env - Use pipenv to install other dependencies from
Pipfilepipenv install --dev - Change to
srcdirectory and optionally activate virtual environment, if you don't want to activate env, usepipenv runto run python scriptscd src source "$(pipenv --venv)"/bin/activate - Make database migrations
python manage.py makemigrations python manage.py migrate - Create a superuser
python manage.py createsuperuser - Run development server on localhost
python manage.py runserver
The API documentation for this project is available in 3 formats viz.
- JSON ->
/api/docs/swagger.json - YAML ->
/api/docs/swagger.yaml - Browsable UI ->
/api/docs/swagger/and/api/docs/redoc/
Note:
DEBUGshould be set toTruein order to access the API documentation.
