Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shivam-goswami5123/waveplay-backendcode
WavePlay - This is a full-fledged backend project (no frontend), rigorously tested on Postman for seamless operation, adhering to industry standards and best practices.
https://github.com/shivam-goswami5123/waveplay-backendcode
appwrite express mongodb nodejs postman
Last synced: 1 day ago
JSON representation
WavePlay - This is a full-fledged backend project (no frontend), rigorously tested on Postman for seamless operation, adhering to industry standards and best practices.
- Host: GitHub
- URL: https://github.com/shivam-goswami5123/waveplay-backendcode
- Owner: shivam-goswami5123
- Created: 2024-03-27T07:13:35.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-01-13T17:57:13.000Z (10 days ago)
- Last Synced: 2025-01-13T18:48:59.374Z (10 days ago)
- Topics: appwrite, express, mongodb, nodejs, postman
- Language: JavaScript
- Homepage:
- Size: 457 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ๐ WavePlay: Video Hosting Backend Project ๐ฅ
## ๐ ๏ธ Introduction
โฆ This is a full-fledged backend project (no frontend), rigorously tested on Postman for seamless operation, adhering to industry standards and best practices. โ
โฆ Developed a robust video hosting backend using **Node.js**, **Express.js**, **MongoDB**, **Mongoose**, **JWT**, and **bcrypt**.
โฆ Implemented standard security practices, including **JWT**, **bcrypt**, access tokens, and refresh tokens for user authentication and authorization. ๐
---
## ๐ Model Diagram
![WavePlay Model](public/assets/diagram-export-28-06-2024-19_04_10.png)
---
## ๐ Features
- ๐ค **User**: Authentication, Update Details, Tokens, Password Encryption, Watch History, User Profile
- ๐ **Dashboard**
- ๐น **Video**: Upload, Get, Delete, Update, Publish Status
- ๐ **Like/Dislike Videos**
- ๐ฌ **Comment**
- ๐ **Subscription and Unsubscription**
- ๐ต **Playlist**: Create, Delete, Add Video, Remove Video
- ๐ฆ **Tweet**: Common page to show all user's tweets---
## ๐งช Instructions for Testing with Postman
Follow the steps below to fork a copy of the project collection from Postman and test all API routes.
### โ๏ธ Prerequisites
- Ensure you have [Postman](https://www.postman.com/downloads/) installed on your machine. ๐ป
- Access to the project Postman collection link is required.---
### ๐ Steps to Fork and Test API Routes
#### 1๏ธโฃ Fork the Postman Collection
1. **Open Postman**: Launch the Postman application.
2. **Navigate to the Collection Link**: Open the shared Postman collection [link](https://elements.getpostman.com/redirect?entityId=31853383-989137d4-7b56-487f-83ed-9e0ced232422&entityType=collection) in your browser. ๐
3. **Fork the Collection**:
- Click on the **Fork** button in the Postman interface.
- Select your workspace where you want to fork this collection.
- Click **Fork Collection**. ๐#### 2๏ธโฃ Set Up Environment Variables
1. **Navigate to the Environment**:
- In Postman, go to the **Environments** tab on the left sidebar.
- Create a new environment or select an existing one.
2. **Add Environment Variables**:
- Add the necessary environment variables required by your API (e.g., `server`).
- Replace placeholder values with actual values relevant to your setup. โ๏ธ#### 3๏ธโฃ Import Environment File (Optional)
If the project provides an environment file, you can import it directly:
1. **Import Environment**:
- Click on the **Import** button in the Postman interface.
- Select the provided environment file (e.g., `environment.json`).
- Click **Import**.#### 4๏ธโฃ Test API Routes
1. **Navigate to the Forked Collection**:
- In the Postman sidebar, go to **Collections**.
- Find the forked collection and expand it to see all the routes. ๐
2. **Run Requests**:
- Click on any request to open it.
- Ensure the correct environment is selected in the top-right corner.
- Click **Send** to execute the request.
- Check the response and validate it against the expected output. โ#### 5๏ธโฃ Run Collection Runner (Optional)
To test all routes at once:
1. **Open Collection Runner**:
- Click on the **Runner** button in the Postman interface. ๐
2. **Select Collection**:
- Choose the forked collection you want to run.
3. **Select Environment**:
- Choose the appropriate environment from the dropdown.
4. **Run Collection**:
- Click **Start Run** to execute all requests in the collection.
- Review the results and ensure all tests pass. โ๏ธ#### 6๏ธโฃ Update Forked Collection (Optional)
If there are updates to the original collection:
1. **Navigate to the Original Collection**:
- Go to the original collection link provided. ๐
2. **Merge Changes**:
- Compare the forked collection with the original.
- Merge changes if necessary to keep your forked collection updated.---
## ๐ ๏ธ Troubleshooting
- If you encounter issues with environment variables, double-check that all necessary variables are defined and correctly assigned. ๐ง
- For authentication errors, ensure your API keys or tokens are valid and not expired. ๐---
By following these steps, you can successfully fork the project collection from Postman and test all routes to ensure everything works as expected. ๐
Happy testing! ๐