Giter VIP home page Giter VIP logo

propftx-movie-app's Introduction

Movie App

Welcome to the Movie App! This web application allows users to explore and manage their movie watchlist. It includes features such as user authentication, movie listing, and the ability to add movies to a watchlist.

Deployment

Table of Contents

Technologies Used

  • Backend:

    • Node.js
    • Express
    • MongoDB
    • Cors (Cross-Origin Resource Sharing)
    • Jsonwebtoken for authentication
    • Bcrypt for password hashing
  • Frontend:

    • React.js

Features

  1. User Authentication:

    • Users can sign up and log in securely.
    • Authentication is implemented using Jsonwebtoken for token-based security.
  2. Movie Listing:

    • Retrieve a list of available movies.
  3. Watchlist Management:

    • Users can add movies to their watchlist.

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/movie-app.git
    cd movie-app
    
  2. Install backend dependencies
    cd Backend
    npm install
    
  3. Install frontend dependencies
    cd ../Frontend/react-movie-app
    npm install
    

Usage

Endpoints

  • POST /users/register

    • Registers a new user.
    • Payload: {username, email, password}.
  • POST /users/login

    • Logs in an existing user.
    • Payload: {email, password}.

User Management

Endpoints

  • GET /users

    • Retrieves all users.
  • GET /users/:userID

    • Retrieves a single user by their ID.
  • PUT /users/:userID

    • Updates a user's information.
    • Payload: {field to be updated}.
  • DELETE /users/:userID

    • Deletes a user by their ID.
  • POST /users/:userID/watchlist

    • Adds a movie to user's watchlist.
    • Payload: {movieId}.
  • DELETE /users/:userID/watchlist

    • Removes a movie from a user's watchlist.
    • Payload: {movieId}.

Course Management

Endpoints

  • POST /movies

    • Creates a new movie.
    • Payload: {title, duration, description, poster_image, genre, release_year,release_date,director,rating}.
  • GET /movies

    • Retrieves all movies.
  • GET /movies/:movieId

    • Retrieves a single movie by its ID.
  • PUT /movies/:movieId

    • Updates a movie's information.
    • Payload: {field to be updated}.
  • DELETE /movies/:movieId

    • Deletes a movie by its ID.

propftx-movie-app's People

Contributors

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