Giter VIP home page Giter VIP logo

yamdb_ci_cd's Introduction

example workflow

YaMDb API

Description:

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.

Install

Clone the repo:

git clone [email protected]:mark-rom/YaMDb_CI_CD.git

Go to new dir:

cd YaMDb_CI_CD/infra/

Run docker-compose:

docker-compose up -d

Inside the web container

Migrate:

docker-compose exec web python3 manage.py migrate

Collect static:

docker-compose exec web python3 manage.py collectstatic

Populate db:

docker-compose exec web python3 manage.py populate_db

Create superuser:

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/.


How to register

  1. Send POST-request with email and username parameters to the endpoint /api/v1/auth/signup/
  2. YaMDB sends a letter with a confirmation code to the email.
  3. Send POST-request with username and confirmation_code to the endpoint /api/v1/auth/token/. You will receive a JWT token.
  4. You can fill up your profile with PATCH-request to the endpoint /api/v1/users/me/

Technologies

-Python 3.7

  • Django 2.2.19
  • Djangorestframework 3.12.4
  • JWT -Docker
  • docker-compose
  • PostgreSQL
  • nginx
  • GitHub workflows

CI/CD

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

yamdb_ci_cd's People

Contributors

mark-rom avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.