API repository for organizations project.
- Create PostgreSQL user and database. Copy file
.env.dist
to.env
and edit database connection. - Setup virtual environment
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
- Apply migrations
./manage.py migrate
- Check unit tests is work
./manage.py test -k
- Run development server
./manage.py runserver
, test your live apihttp://localhost:8000/v1/
. - Read API documentations on
http://localhost:8000/v1/docs
.