### Start Development Server Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Start the development server to view the application locally. The application will be accessible at http://localhost:3000. ```bash npm run dev ``` -------------------------------- ### Database Setup and Migrations Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Set up your Supabase project, apply the database schema, and run migrations and seeding scripts. Ensure your Supabase project is configured. ```bash # Setup Supabase project and apply schema # Follow instructions in docs/DATABASE_SCHEMA.md # Run database migrations npm run db:migrate npm run db:seed ``` -------------------------------- ### Clone and Install Project Dependencies Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Clone the repository and install project dependencies using npm. Ensure Node.js 18+ is installed. ```bash git clone cd reservation_system npm install ``` -------------------------------- ### Development Scripts Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Common development scripts for starting the server, building for production, and running database migrations and seeding. ```bash # Development npm run dev # Start development server npm run build # Build for production npm run start # Start production server # Database npm run db:migrate # Apply database migrations npm run db:seed # Seed database with sample data npm run db:reset # Reset database # Quality Assurance npm run lint # Run ESLint npm run type-check # TypeScript type checking npm run test # Run tests npm run test:coverage # Test coverage report # Analysis npm run analyze # Bundle size analysis ``` -------------------------------- ### Set Up Environment Variables Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Copy the environment template and configure your local environment variables. Refer to the environment setup documentation for detailed instructions. ```bash # Copy environment template cp .env.example .env.local # Configure your environment variables # See docs/ENVIRONMENT_SETUP.md for detailed instructions ``` -------------------------------- ### Deploy to Vercel Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Install Vercel CLI and deploy the application. Configure environment variables in the Vercel dashboard for production deployments. ```bash # Install Vercel CLI npm install -g vercel # Deploy vercel # Configure environment variables in Vercel dashboard # Deploy to production vercel --prod ``` -------------------------------- ### Project Directory Structure Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Overview of the project's directory structure, highlighting key directories like app, components, and lib. ```bash src/ ├── app/ # Next.js App Router pages │ ├── auth/ # Authentication pages │ ├── events/ # Event browsing and details │ ├── dashboard/ # User dashboards (attendee/organizer) │ ├── admin/ # Admin panel │ └── api/ # API routes ├── components/ # React components │ ├── ui/ # Base UI components │ ├── auth/ # Authentication components │ ├── events/ # Event-related components │ ├── booking/ # Booking flow components │ └── dashboard/ # Dashboard components ├── lib/ # Utilities and configurations ├── hooks/ # Custom React hooks ├── types/ # TypeScript definitions └── store/ # State management ``` -------------------------------- ### Run Tests Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Commands to execute tests. Use 'test:watch' for development to automatically re-run tests on file changes, and 'test:coverage' to generate a test coverage report. ```bash # Run all tests npm run test # Watch mode for development npm run test:watch # Generate coverage report npm run test:coverage ``` -------------------------------- ### Environment Variables Configuration Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Essential environment variables for various services including Supabase, Razorpay, Google Maps, and SendGrid. Refer to .env.example for a complete list. ```bash # Supabase NEXT_PUBLIC_SUPABASE_URL=your_supabase_url SUPABASE_SERVICE_ROLE_KEY=your_service_role_key # Razorpay NEXT_PUBLIC_RAZORPAY_KEY_ID=your_razorpay_key RAZORPAY_KEY_SECRET=your_razorpay_secret # Google Maps GOOGLE_MAPS_API_KEY=your_google_maps_key # Email SENDGRID_API_KEY=your_sendgrid_key ``` -------------------------------- ### Troubleshoot Build Failures Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Steps to resolve build failures by clearing the Next.js cache and attempting to rebuild the project. ```bash # Clear Next.js cache rm -rf .next npm run build ``` -------------------------------- ### Troubleshoot Database Connection Source: https://github.com/bhushanrevankar/event_management/blob/main/README.md Commands to check Supabase connection status and reset the database. Useful for diagnosing database-related issues. ```bash # Check Supabase connection supabase status supabase db reset ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.