https://github.com/phukon/xongroh
https://github.com/phukon/xongroh
mern-stack redux-toolkit social-media
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phukon/xongroh
- Owner: phukon
- Created: 2023-09-26T20:32:59.000Z (about 2 years ago)
- Default Branch: phukon-xongroh
- Last Pushed: 2023-11-30T15:09:25.000Z (almost 2 years ago)
- Last Synced: 2025-01-27T21:26:18.277Z (9 months ago)
- Topics: mern-stack, redux-toolkit, social-media
- Language: JavaScript
- Homepage: https://xongroh.vercel.app
- Size: 10.3 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Xongroh
The social marketplace designed exclusively for Creators.
Learn more ยป
Website
ยท
Issues
ยท
Roadmap
![]()
# Project Guidelines and Best Practices
Please follow these guidelines to ensure smooth and efficient development:
- **Adhere to industry best practices:** We recommend following best practices for software development. You can refer to [bulletproof-react](https://github.com/alan2207/bulletproof-react) for some useful insights.
- **Avoid excessive Git Merge:** Instead of excessive use of Git Merge, it is recommended to rebase the HEADs of your branches. This helps maintain a cleaner commit history.
- **Ensure clear and consistent API versioning:** Use industry-standard methods for API versioning, and maintain comprehensive documentation. Clear and consistent API versioning helps in stable and efficient development.
- **Avoid experimental features and packages with vulnerabilities:** Do not use experimental features and packages with known vulnerabilities. Additionally, for Node.js, stick to CommonJS (CJS) modules to ensure stability. (Stability Index: 1) It's worth noting that using ES6 modules for Node.js can lead to issues, as explained in the [Node.js documentation](https://nodejs.org/docs/v12.13.0/api/esm.html#esm_ecmascript_modules).
- **Avoid Massive Refactoring:** Incremental improvements are better than massive overhauls. Refactor as you go without derailing timelines.
- **Leave It Better Than Before:** Continuously enhance code readability and cleanliness with small changes over time.
- **Embrace Imperfection:** Perfect code doesn't exist; account for real-world complexity without over-refactoring.
- **Collaborate & Seek Feedback:** Engage in peer reviews and collaborate with the team to evaluate the necessity of large-scale refactoring.
## Table of Contents
- [Usage](#usage)
- [Routes](#routes)
- [Contact Information](#contact-information)## Usage
This server provides the backend for the Xongroh social marketplace. It handles user authentication, user registration, post management, and more.
## Routes
### User Routes
| Endpoint | Type | Description |
|-------------------------------------|--------|-----------------------------------------------------|
| ๐ข `/v1/auth/register` | POST | Register a new user. |
| ๐ข `/v1/auth/authenticate` | POST | Authenticate a user. |
| ๐ต `/v1/user/getAllUsers` | GET | Get a list of all users. |
| ๐ต `/v1/user/getUserById/:id` | GET | Get user details by ID. |
| ๐ต `/v1/user/generateOTP` | GET | Generate a one-time password for user verification.|
| ๐ต `/v1/user/verifyOTP` | GET | Verify a one-time password for user verification. |
| ๐ต `/v1/user/createResetSession` | GET | Create a password reset session for a user. |
| ๐ `/v1/user/updateuser` | PATCH | Update user information. |
| ๐ `/v1/user/resetPassword` | PUT | Reset a user's password. |### Post Routes
| Endpoint | Type | Description |
|-------------------------------------|--------|---------------------------|
| ๐ต `/v1/post/getAllPosts` | GET | Get a list of all posts. |
| ๐ข `/v1/post/createPost` | POST | Create a new post. |
| ๐ `/v1/post/updatePost` | PUT | Update a post. |
| ๐ด `/v1/post/deletePost` | DELETE | Delete a post. |### Authentication Routes
| Endpoint | Type | Description |
|-------------------------------------|--------|---------------------|
| ๐ข `/v1/auth/login` | POST | User login. |
| ๐ต `/v1/auth/refresh` | GET | Refresh the user's access token. |
| ๐ข `/v1/auth/logout` | POST | User logout. |## Contact Information
If you have any questions or need assistance, feel free to reach out to us through the following channels:
- WhatsApp: [Message Us](https://wa.me/919127510087?text=hi)
- Instagram: [@xongroh](https://instagram.com/xongroh)
- Twitter: [@xongroh](https://twitter.com/xongroh)**Riki** on [GitHub](https://github.com/phukon).