An open API service indexing awesome lists of open source software.

https://github.com/phukon/xongroh


https://github.com/phukon/xongroh

mern-stack redux-toolkit social-media

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

Xongroh


The social marketplace designed exclusively for Creators.


Learn more ยป




Website
ยท
Issues
ยท
Roadmap



screenshot

# 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).