This is the backend for the EventFinder application, responsible for managing user authentication, event registrations, and data handling. The backend must be running alongside the frontend for the application to function properly.
- Node.js
- Express.js
- MongoDB (Atlas)
- Mongoose
- JWT Authentication
- Render (for deployment)
- User authentication (Signup, Login, JWT-based authentication)
- Event creation and management
- Registering and unregistering for events
- Fetching user-specific applied events
- Secure API endpoints
Ensure you have the following installed:
- Node.js
- MongoDB Atlas (or a local MongoDB setup)
-
Clone the repository
git clone <backend-repo-url> cd eventfinder-backend
-
Install dependencies
npm install
-
Set up environment variables Create a
.envfile in the root directory and add the following:PORT=3000 MONGO_URI=<your-mongodb-connection-string> JWT_SECRET=<your-secret-key>
-
Start the server
npm start
The backend should now be running on
http://localhost:3000/
The backend is deployed on Render. If it stops working, check the Render service status or redeploy.
Use the following credentials to test the backend API:
- Email:
max@gmail.com - Password:
max1234
Ensure the frontend is running and connected to the backend for full functionality.
If you wish to contribute, feel free to fork the repository and submit a pull request.
For any issues, contact the repository owner or create an issue in the GitHub repository.