Aggregator of movies
A clone of kinopoisk.
At the moment, the user can view information about movies and persons,
watch news
- Clone repo
git clone https://github.com/Pogchamp-company/kinopoisk_on_django.git
- Create Python Virtual Environment
- Install requirements
pip install -r requirements.txt
- Create PostgreSQL database
- Set env variables
- Migrate database
# cd src
manage.py migrate
- Run minio
# cd ..
docker-compose up -d minio
- Initialize Minio buckets
manage.py initialize_buckets
- Collect static files
manage.py collectstatic
- Optional: run seeds
- Run project
manage.py runserver
- Generate seeders json or download this in release
- Run
manage.py loaddata seed/movies.json
manage.py loaddata seed/persons.json
- Get posters
- Run
manage.py load_posters
manage.py load_photos
Run
manage.py add_kp_movie {movie_id} --api-key {YOUR_API_KEY}
Run
manage.py seed_users {users_count}
manage.py seed_scores
!Warning: seed data before running tests
bash run_tests.sh
- Django - The web framework used
- Django Rest Framework - Rest api utils
{username}/{task_short_description}
- Roman Alexandrov - Documentation, Backend - Github
- Artem Golovin - Backend - Github
- Sergey Sirotkin - Main frontend developer - Github
This project is licensed under the MIT License - see the LICENSE.md file for details
Variable | Short description | Default |
---|---|---|
SECRET_KEY | App session secret key | @oowa+)%q57uxhffto99*-b+mt%63!@rmqstv&%fr92* |
DATABASE_URI | PostgreSQL connection URI | postgresql+psycopg2://postgres@localhost:5432/KOD |
MINIO_ENDPOINT | Endpoint to connect minio | 127.0.0.1:9001 |
MINIO_ACCESS_KEY | Minio user | minio |
MINIO_SECRET_KEY | Minio password | minio123 |
MINIO_USE_HTTPS | - | False |