Deployment
This document serves as a guide that offers instructions to deploying SCHEMA api, on different deployment use cases. In order for SCHEMA api to work, ensure that all of SCHEMA api's dependencies are satisfied.
Install locally
In order to install SCHEMA api locally, it is required that Python 3.11 is installed. In addition, to avoid package collisions, it is recommended that a virtual environment solution like Pipenv or virtualenv is used.
- Clone code from Github
- Install dependencies
- For Pipenv you may use:
pipenv install
- For pip, you can use:
pip install -r requirements.txt
- For Pipenv you may use:
- Define configuration variables
- Generate and perform initial migrations
python manage.py makemigrations
python manage.py migrate - Run server
python manage.py runserver