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
pipenv
for dependency managementpip install pipenv
- Copy
.env.example
to.env
cp .env.example .env
- Use pipenv to install other dependencies from
Pipfile
pipenv install --dev
- Change to
src
directory and optionally activate virtual environment, if you don't want to activate env, usepipenv run
to 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:
DEBUG
should be set toTrue
in order to access the API documentation.