Project that allows theater visitors to make reservations online and choose needed seats, without going physically to the theatre written on DRF
- CRUD Operations
- JWT Authentication
- Email-Based Authentication
- Admin Panel
- Play's Filtering
- Throttling Mechanism
- Managing orders and tickets
- API Documentation
Install PostgreSQL and create db.
Clone the repository:
git clone https://github.com/lylakivan/theatre-api-service.git
Create and activate virtual environment:
-
On Windows
python -m venv venv
venv\Scripts\activate
-
On MacOS
python3 -m venv venv
source venv/bin/activate
Install needed requirements:
pip install -r requirements.txt
Run database migrations:
python manage.py migrate
Create .env file using env.sample
file
Run server:
python manage.py runserver
Go to http://127.0.0.1:8000/
Docker should be installed.
- pull docker container
docker pull lylakivan/docker-theatre-api
- run container
docker-compose build docker-compose up
- email: admin@admin.com
- password: admin