This is the frontend of a Mini Event Management System built with Next.js, React, and Tailwind CSS. It provides a seamless user interface to register, log in, and manage events (create, edit, delete, and list) via a Laravel API backend.
AuthContext
) to manage authenticationhttp://localhost:8000
http://localhost:8000
```bash npm run dev
Navigate to http://localhost:3000 to view the app
Page | Path | Description |
---|---|---|
Register | /register |
Create a new account |
Login | /login |
Log in with your credentials |
Dashboard | /dashboard |
View and manage your events |
Create Event | /events/create |
Add a new event |
Edit Event | /events/edit/:id |
Edit an existing event |
start_time
must be before end_time
when creating or editing events ```plaintext event-management-frontend/ ├── app/ # Next.js routes and pages │ ├── dashboard/ # Dashboard page │ ├── events/ # Create/Edit event pages │ ├── login/ # Login page │ └── register/ # Registration page ├── components/ # Reusable React components (e.g., EventForm) ├── contexts/ # AuthContext for managing auth state ├── hooks/ # Custom hooks (e.g., useAuth) ├── public/ # Static assets ├── styles/ # Tailwind and global CSS
Events are displayed 10 per page
Uses the backend API’s ?page= query parameter for pagination
Contributions are welcome! Feel free to fork, open issues, or submit pull requests.