This project serves as the backend for a video uploading and viewing platform. The backend includes controllers for handling user-related functionalities, video management, likes, comments, tweets, subscriptions, dashboards, and playlists.
-
User authentication and management
-
Video upload and viewing
-
Likes and comments on videos
-
Tweets related to video content
-
User subscriptions and dashboards
-
Playlist creation and management
Before setting up the project, ensure you have the following installed:
-
Node.js
-
npm (Node Package Manager)
-
Clone the repository:
git clone https://github.com/ironjosh786/backend.git
-
Change to the project directory
cd backend
-
Create a .env file in the root directory and configure the following environment variables:
PORT, CORS_ORIGIN, MONGODB_URI, ACCESS_TOKEN_SECRET, ACCESS_TOKEN_EXPIRY, REFRESH_TOKEN_SECRET, REFRESH_TOKEN_EXPIRY, CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, CLOUDINARY_API_SECRET
-
Install the dependencies
npm install
-
Start the development server
npm start
- Users
- User model for authentication and profile management.
- Videos
- Model to store information about uploaded videos.
- Likes
- Model for tracking likes on videos.
- Comments
- Model to store comments on videos.
- Tweets
- Model for tweets related to video content.
- Subscriptions
- Model to manage user subscriptions to channels.
- Dashboards
- Model for user dashboards, aggregating content from subscribed channels.
- Playlists
- Model for creating and managing user playlists.
This project is licensed under ChaiAurCode