Skip to content

About

Cinema Critic project's backend utilizing Django REST API

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

76 Commits

Folders and files

Repository files navigation


Cinema Critic Server

This is the backend of the Cinema Critic project. The backend is a RESTful API built with Django REST API. The frontend, built on vanilla JavaScript, interacts with this backend to provide a complete user experience. You can find the front-end repository here.


Features

The backend handles the logic for several models:

  • AppUser: Our custom user model.
  • Profile: Extends the AppUser model to provide detailed user profiles.
  • Movies and Series: Handles the details and categorization of various movies and series.
  • Reviews: Allows users to leave reviews on movies and series.
  • Genres: Classifies movies and series into various genres.

Additional features include:

  • Pagination: Helps in handling large amounts of data by splitting it into pages.
  • Filtration: Provides the ability to filter the content based on different parameters.
  • Sorting: Allows the ordering of content based on specific fields.
  • JWT Token Authorization: Provides secure user authentication through JWT tokens passed as cookies.

Technologies Used

The Cinema Critic Server is built with:

  • Django REST API: Our framework for building the API.
  • Django ORM: Used for interacting with the database.
  • JWT: For secure user authentication.

Setup and Installation

To set up and run this project locally, follow these steps:

  1. Clone the repository: git clone https://github.com/your-username/your-repo-url.git
  2. Get to the project directory
  3. Install the requirements: pip install -r requirements.txt
  4. Run the migrations: python manage.py migrate
  5. Start the server: python manage.py runserver

Usage

Here's an example request for this API:


Example request: ../content/movies/1/  (GET)

Response: { "id": 1, "name": "Test movie", "year": 2000, "rating": "4.93", "director": "Test Director", "stars": ["Marlon Brando", "Al Pacino"], "visits": 5, "genres": [ "Action", "Drama" ], "trailer": "https://youtu.be/7qUw0UHREtg", "image": "https://img.freepik.com/premium-photo/image-colorful-galaxy-sky-generative-ai_791316-9864.jpg?w=2000", "length": "2 hours and 30 minutes", "created_at": "2023-07-22T07:59:15.866030Z", "slug": "test-movie-1", "description": "test description" }


About

Cinema Critic project's backend utilizing Django REST API

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages