This guide will help you set up the Event RSVP Manager on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed:
- Node.js 18 or later
- npm or Yarn
- Git
- MySQL or PostgreSQL
- Visual Studio Code (recommended)
git clone https://github.com/yourusername/event-rsvp.git
cd event-rsvpUsing npm:
npm installOr using Yarn:
yarn install-
Copy the example environment file:
cp .env.example .env.local
-
Update the
.env.localfile with your configuration:# Database DATABASE_URL="mysql://username:password@localhost:3306/event_rsvp" # Authentication NEXTAUTH_SECRET=your-secret-key NEXTAUTH_URL=http://localhost:3000 # JWT JWT_SECRET=your-jwt-secret # OAuth (optional) GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET=
-
Create a new database in your MySQL/PostgreSQL server:
CREATE DATABASE event_rsvp;
-
Run database migrations:
npx prisma migrate dev --name init
npm run dev
# or
yarn devOpen http://localhost:3000 in your browser to see the application running.
-
Create an Account
- Click on "Sign Up" and fill in your details
- Verify your email address (if email verification is enabled)
-
Create Your First Event
- Navigate to the "Events" page
- Click on "Create Event"
- Fill in the event details and save
-
Invite Guests
- Go to your event
- Click on "Invite Guests"
- Copy the invitation link or import guests from a CSV file
- Ensure your database server is running
- Verify the database credentials in
.env.local - Check if the database user has the correct permissions
- Clear your browser cookies and local storage
- Ensure the
NEXTAUTH_SECRETis set and consistent - Check the browser's console for any error messages
- Make sure no other application is using port 3000
- Check for any error messages in the terminal
- Try deleting
node_modulesandpackage-lock.jsonthen runnpm installagain