BrainBash is a web platform that provides a marketplace for experts across various domains to share online events and offer consultations. This repository contains the backend server that powers the BrainBash platform, built using Node.js, Express.js, MongoDB, and Mongoose.
- User Authentication: Secure registration, login, and profile management.
- Event Management: Create, update, and manage online events.
- Consultations: Facilitate expert-user communication and personalized consultations.
- Requests: Handle user requests for events and consultations.
- Data Security: Ensure secure data handling through best practices in server-side development.
- Node.js & Express.js: For building the server-side application and APIs.
- MongoDB & Mongoose: To store and manage event and user data.
- JWT: JSON Web Token for secure user authentication.
- Clone the repository:
git clone <URL-to-Backend-Repo>
- Navigate to the project directory:
cd <Backend-Repo-Name>
- Install the dependencies:
npm install
- Create a
.env
file in the root directory to configure environment variables. Here is an example:PORT=4000 MONGO_URI=<Your MongoDB connection URI> JWT_SECRET=<Your secret for JWT>
- Start the server:
npm start
- The server will run on the specified port (e.g.,
http://localhost:4000
).
You can run tests (if available) using the following command:
npm test
We welcome contributions to BrainBash! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push the branch to your fork.
- Submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more details.
If you have any questions or need assistance, feel free to open an issue or contact us.