YaMDb API is a REST API for content rating service like IMDb. Authenticated users can post reviews on titles, and comment on others' reviews. Moderators can edit or even delete unacceptable content. Every user on the Internet can read reviews.
git clone git@github.com:mark-rom/YaMDb_CI_CD.git
cd YaMDb_CI_CD/infra/
docker-compose up -d
docker-compose exec web python3 manage.py migrate
docker-compose exec web python3 manage.py collectstatic
docker-compose exec web python3 manage.py populate_db
docker-compose exec web python3 manage.py cratesuperuser
Now the service is available on your local machine at http://localhost/api/v1/, and the admin panel is on http://localhost/admin/.
- Send POST-request with
email
andusername
parameters to the endpoint/api/v1/auth/signup/
- YaMDB sends a letter with a confirmation code to the email.
- Send POST-request with
username
andconfirmation_code
to the endpoint/api/v1/auth/token/
. You will receive a JWT token. - You can fill up your profile with PATCH-request to the endpoint
/api/v1/users/me/
-Python 3.7
- Django 2.2.19
- Djangorestframework 3.12.4
- JWT -Docker
- docker-compose
- PostgreSQL
- nginx
- GitHub workflows
Set CI/CD to a virtual server. Workflow settings are in YaMDb_CI_CD/.github/workflows/
directory. Environmental variables are in Actions secrets.
##Authors## Artem Merkulov, Artem Fabricov, Pavel Sergeev