Giter Club home page Giter Club logo

ip-server-side's Introduction

ip23movies Server-Side Code

Description

This repository contains the server-side code for ip23movies, a movie streaming platform. Built using Node.js and Express.js, this server handles authentication, video streaming, and other backend functionalities required for the platform.

Features

  • User Authentication: Provides endpoints for user registration, login, and authentication using JSON Web Tokens (JWT).
  • Video Streaming: Implements routes for fetching and streaming video content to authenticated users.
  • Database Integration: Utilizes MongoDB for storing user data and video metadata, with Mongoose as the ODM (Object Data Modeling) library.
  • Middleware: Includes middleware for parsing JSON bodies, enabling CORS (Cross-Origin Resource Sharing), and handling 404 errors for undefined routes.

Technologies Used

  • Node.js: JavaScript runtime environment for server-side development.
  • Express.js: Fast, unopinionated, minimalist web framework for Node.js.
  • MongoDB: NoSQL database for storing user data and video metadata.
  • Mongoose: Elegant MongoDB object modeling for Node.js.
  • JSON Web Tokens (JWT): Secure method for transmitting information between parties as a JSON object.
  • dotenv: Module for loading environment variables from a .env file into process.env.
  • cors: Middleware for enabling Cross-Origin Resource Sharing in Express.js.

Installation

  1. Clone the repository: git clone https://github.com/Joeltabe/ip-server-side.git
  2. Navigate to the project directory: cd ip23movies-server
  3. Install dependencies: npm install
  4. Set up environment variables: Create a .env file in the root directory and define variables like PORT, MONGO_URI, and JWT_SECRET.
  5. Start the server: npm start

Usage

  • Register a new user using the /api/user/register endpoint.
  • Log in with registered credentials using the /api/user/login endpoint to receive a JWT token.
  • Access video content using authenticated routes like /api/videos for streaming.

Contributors

License

This project is licensed under the MIT License.

Support

For any inquiries or support, please contact us at [email protected].

ip-server-side's People

Contributors

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