Skip to content

Vitalii-Khmura/theatre-APi-service

Repository files navigation

Theatre API service

Django REST Framework API project for theatre service

Instalation

Python3 must be already installed

git clone https://github.com/Vitalii-Khmura/theatre-APi-service.git
cd theatre_api_service
python -m venv venv
venv/Scripts/activate
pip innstall requirements.txt

python manage.py runserver

Then you should create an .env file and enter in this file SECRET_KEY and your POSTGRES DB

    POSTGRES_HOST=<your_postgres_host>
    POSTGRES_USER=<your_postgres_user>
    POSTGRES_NAME=<your_postgres_name>
    POSTGRES_PASSWORD=<your_postgres_password>
    
    
    SECRET_KEY=<your_secret_key>

All Environment variables that should be in .env file are specified in the .env_sample file

Finally, perform the migration, write next command in terminal:

    python manage.py makemigrations
    python manage.py migrate

After loading data from fixture you can use following superuser (or create another one by yourself):

  • Login: test_user
  • Password:admin

Run with docker

Docker should be installed

    docker-compose build
    docker-compose up

Feauteres

  • JWT authentication
  • Admin panel /admin/
  • Documentation is located at /api/doc/swagger/
  • Managing actors & genres
  • Creating performance
  • Creating plays with actor and genres
  • Creating Theatre Hall
  • Make a reservation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published