Skip to content

Express server RESTful API that manages the upload of video and image content to storage web services such as Cloudinary and allows sharing said content with other users and visitors of the platform.

Notifications You must be signed in to change notification settings

Zuniga63/backend-youtube

Repository files navigation

Backend YouTube Top-22

Express server RESTful API that manages the upload of video and image content to storage web services such as Cloudinary and allows sharing said content with other users and visitors of the platform.

It uses authentication via JSON web Token (JWT) with password encryption using Bcrypt, mailing with nodemailer and communication with a non-relational database (MongoDB) using the a ODM (Mongoose).

Dependencies

ExpressMongooseJWTbcryptbusboycloudinarycorsdotenvMorgan-npm

Dev Dependencies

This project use the next dependencies for dev

Dependencie Description
Eslint Use Eslint with AirBnB rules
Prettier For format the style code
Husky & lint-staged For control the pre-commit
nodemon For the server to listen for changes and update itself

[========]

Installation

  1. Clone this repository git clone https://github.com/Zuniga63/backend-youtube.git
  2. Install the dependencies with node npm install
  3. Create the .env file with cp .env.example .env
  4. Write the credentials to the file .env
  5. After adding Cloudinary credentials run the script for create the presets npm run cloudpresets
  6. Finished for dev run npm run dev and for production npm run start

Documentation

swagger-ui-express is used for the documentation of the endpoints and these can be found in the path “/api-docs”

api-docs

About

Express server RESTful API that manages the upload of video and image content to storage web services such as Cloudinary and allows sharing said content with other users and visitors of the platform.

Topics

Resources

Stars

Watchers

Forks