A platform for organizing and discovering local events.
- Node.js (v14 or higher)
- MongoDB (local installation or MongoDB Atlas account)
- npm or yarn
- Navigate to the backend directory:
cd backend- Install dependencies:
npm install- Create a
.envfile in thebackenddirectory with the following:
MONGO_URI=mongodb://localhost:27017/local-events
PORT=5000
JWT_SECRET=local-events-dev-secretFor MongoDB Atlas (cloud):
MONGO_URI=mongodb+srv://username:password@cluster.mongodb.net/local-events?retryWrites=true&w=majority
PORT=5000
JWT_SECRET=local-events-dev-secret- Start the backend server:
# Development mode (with auto-reload)
npm run dev
# Or production mode
npm startThe backend will run on https://micro-event-discovery.onrender.com
- Open a new terminal and navigate to the frontend directory:
cd frontend- Install dependencies:
npm install- Start the development server:
npm run devThe frontend will run on http://localhost:5173 (or another port if 5173 is busy)
-
Start MongoDB (if using local MongoDB):
- Make sure MongoDB is running on your system
- Or use MongoDB Atlas (cloud) - no local installation needed
-
Start Backend (Terminal 1):
cd local-events-platform/backend npm run dev -
Start Frontend (Terminal 2):
cd local-events-platform/frontend npm run dev -
Open Browser:
- Navigate to
http://localhost:5173(or the port shown in terminal)
- Navigate to
npm start- Start the servernpm run dev- Start the server with nodemon (auto-reload)
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production build
Before running, make sure:
- Node.js is installed (
node -v) - MongoDB is running (local or Atlas)
-
.envfile exists inbackendfolder withMONGO_URI - Dependencies installed in both
backendandfrontend(npm install) - Backend runs without errors (
npm run devin backend folder) - Frontend runs without errors (
npm run devin frontend folder)
If the app crashes, see TROUBLESHOOTING.md for common issues and solutions.
- The seeder file has been removed - events are now only created by organizers through the UI
- Organizers can create events from the Organizer Dashboard
- Events created by organizers will appear on both:
- Organizer Dashboard (for the organizer)
- User Dashboard (for all users in the same city)
- Fixed: Added null checks for user properties to prevent crashes