Code Monkey home page Code Monkey logo

flixflex's Introduction

FlixFlex

FlixFlex is a movie and series tracking application that allows users to discover, view details, and manage their favorite movies and series.

Table of Contents

Prerequisites

Before you begin, ensure you have the following installed:

Installation

  1. Clone the repository:
git clone https://github.com/oussamabouchikhi/flixflex.git
  1. Install dependencies:
cd flixflex
pnpm install
  1. Rename the example.env.development file to .env.development and modify the environment variables:

    Note: you need to create a MongoDB atlas and create an account TMDB website

MONGODB_URI=YOUR_MONGODB_URI

JWT_SECRET=YOUR_JWT_SECRET
ENCRYPT_JWT_SECRET=YOUR_JWT_ENCRIPTING_PASS
JWT_EXPIRATION=30m

TMDB_API_KEY=YOUR_TMDB_API_KEY
TMDB_READ_ACCESS_TOKEN=YOUR_TMDB_READ_ACCESS_TOKEN

Usage

The base endpont is

http://localhost:3000/api/v1/

Authentication

To use authentication features, you need to register and login. Use the following API endpoints:

POST /auth/register: Register a new user. POST /auth/login: Login with a registered user.

Movies and Series

Explore and manage movies and series with the following API endpoints:

GET /movies: Get a list of all movies.

GET /movies/top: Get the top movies.

GET /movies/:id: Get details of a specific movie.

POST /movies/search: Search for movies.

POST /movies/add-to-favorites/:id: Add a movie to your favorites.

DELETE /movies/remove-from-favorites/:id: Remove a movie from your favorites.

GET /movies/favorites: Get your list of favorite movies.

API Endpoints

For a complete list of API endpoints and their descriptions, refer to the Swagger Documentation.

Testing

Run the tests using:

pnpm run test

Swagger Documentation

Access Swagger documentation to explore and test API endpoints:

Start the application

pnpm run start:dev

Visit Swagger documentation in your browser

http://localhost:3000/api/v1/swagger

Contributing

Feel free to contribute to the development of FlixFlex. Please follow the Contribution Guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

flixflex's People

Contributors

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