Welcome to Watchify – a robust backend solution providing essential features for video uploading and storage built with nodejs, expressjs, mongodb, mongoose, jwt, bcrypt, etc. This RESTful API is designed to handle:
- User Authentication: Secure account creation, login, and identity verification.
- Video Management: Seamless video uploading and storage.
- User Interaction: Liking, disliking videos, commenting, tweeting and more.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Make sure you have the following installed on your machine:
- NodeJs : JavaScript runtime for server-side development.
Follow these steps to set up the development environment:
git clone <https://github.com/desmond3th/backend.git>
cd backend
npm install
create a .env
file in the root directory and add the necessary variables.
PORT=3000
MONGODB_URL=your-mongodb-connection-string
CORS_ORIGIN=*
ACCESS_TOKEN_SECRET=your-secret-key
ACCESS_TOKEN_EXPIRY=your-access-token-expiry-time
REFRESH_TOKEN_SECRET=your-refresh-token-secret
REFRESH_TOKEN_EXPIRY=your-refresh-token-expiry-time
CLOUDINARY_CLOUD_NAME=your-cloudinary-name
CLOUDINARY_API_KEY=your-cloudinary-api-key
CLOUDINARY_API_SECRET=your-cloudinary-api-secret
npm run dev
- MongoDB - Database
- Express - Server Framework
- NodeJs - Server Environment
- Cloudinary - Cloud