Git Product home page Git Product logo

cinema_program's Introduction

cinema_program

A test Project

This is an API for managing a cinema program, with the ability to add new movies, sync the data to MongoDB, and list trending movies sorted by ranking

Requirements

  • Docker
  • Docker Compose

Stack

  • Django
  • Django REST Framework
  • Postgres
  • MongoDB
  • Celery
  • Redis
  • RabbitMQ

Getting Started

  1. Clone the repository:

    git clone https://github.com//cinema-program.git

  2. Move into the project directory:

    cd cinema-program-api

  3. Run the following commands to build and start the containers:

    • docker build .
    • docker-compose build
    • docker-compose up
  4. Run the tests: docker-compose run --rm app sh -c "python manage.py test"

  5. Access the API at http://localhost:8000/api/docs/

API Endpoints

Movies

  • GET /api/movies/ - List all movies
  • POST /api/movies/ - Create a new movie
  • GET /api/movies/{id}/ - Retrieve a movie by ID
  • PUT /api/movies/{id}/ - Update a movie by ID
  • PATCH /api/movies/{id}/ - Update a movie by ID
  • DELETE /api/movies/{id}/ - Delete a movie by ID

Development

  • Run the following command to start the development server: docker-compose up
  • The development server can be accessed at http://localhost:8000/
  • Run the following command to create a new Django project: docker-compose run --rm app sh -c "django-admin startproject myproject"
  • Run the following command to create a new Django app after creating your project: docker-compose run --rm app sh -c "python manage.py startapp <app_name>"

img.png img_1.png

cinema_program's People

Contributors

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