API service for cinema management written on DRF
- JWT authenticated
- Admin panel /admin/
- Documentation is located at /api/doc/swagger/
- Managing orders and tickets
- Creating movies with genres, actors
- Creating cinema halls
- Adding movie sessions
- Filtering movies and movie sessions
Install PostgresSQL and create db
- Clone the repository:
git clone https://github.com/your-username/cinema-API
- Change to the project's directory:
cd Cinema-API
-
Сopy .env_sample file with your examples of env variables to your .env file
-
Once you're in the desired directory, run the following command to create a virtual environment:
python -m venv venv
- Activate the virtual environment:
On macOS and Linux:
source venv/bin/activate
On Windows:
venv\Scripts\activate
- Install the dependencies
pip install -r requirements.txt
- Set up the database:
Run the migrations
python manage.py migrate
- Start the development server
python manage.py runserver
- Access the website locally at http://localhost:8000.
Docker should be installed
docker-compose build
docker-compose up
- create user via /api/user/register/
- get access token via /api/user/token/