/yamdb_final

yamdb_final

Primary LanguagePython

yamdb

Python Django PostgreSQL NGINX docker GitHub%20Actions

#API_YaMDB

It's api for my learning project.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

docker
docker-compose

Installing

A step by step series of examples that tell you have to get a development env running

Environment variables what you need are in .env file, but you need to add POSTGRES_PASSWORD

Put they to .env and set yours values

Say what the step will be

$ docker compose up
$ docker exec -it <CONTAINER ID> bash

Next commands will be executed in the container:

Collect static to STATIC_ROOT

$ python manage.py collectstatic

Migrate to database

$ python manage.py migrate

Create superuser

$ python manage.py createsuperuser

Example of initializing start data

$ python manage.py loaddata fixtures.json

Site is working on:

Documentation:

API:

Running the tests

Use pytest

Tests check settings of Django, dockerfile, docker-compose ane requirements

Project powered by:

Authors

Aleksei Libman - Initial work - (https://github.com/lexlibman)

License BSDv3 license

This project is licensed under the BSD 3 - see the LICENSE.md file for details

Acknowledgments

Yandex.Praktikum