- Docker required
docker-compose build
docker-compose run
- Download it from GitHub or make a pull
- Create a PostgreSQL database
- Create .env file, using .env_sample (input your data) Or run this code:
git clone https://github.com/ORENYT/planetarium-rest-api.git
cd planetarium-rest-api
python -m venv venv
source venv/bin/activate
set DB_HOST=<your_data>
set DB_NAME=<your_data>
set DB_USER=<your_data>
set DB_PASSWORD=<your_data>
set DB_PORT=<your_data>
python manage.py migrate
python manage.py runserver
- Register via /api/user/register
- Get access via /api/user/token