Our Website is hosted on https://summerbuild.pages.dev/login
- Have you ever discovered an interesting event in Outlook only to find that registration has already closed? Our app solves this problem by providing proactive event management and timely notifications.
- Gemini API key --> used for classifying events on web scraper
- FR1.1: Support login via Supabase OAuth.
- FR1.2: Redirect logged-in students to the home calendar view.
- FR1.3: Display a list of all available events.
- FR1.4: Support filtering events (by date, type, availability, etc.).
- FR1.5: Allow users to view detailed event info by clicking on an event (GET
/events/:id).
- FR1.6: Allow students to register for an event via a register button.
- FR1.7: On registration:
- Check if the user is already registered.
- Check if the event is still open.
- Check for scheduling collisions with other registered events.
- Decrease available slots by 1 if valid.
- Optionally, send confirmation email.
- Mark event on user calendar.
- FR1.8: Allow students to cancel registration.
- FR1.9: On cancellation:
- Check if user is registered.
- Check if event is not in the past or cancelled.
- Remove user registration.
- Increase available slots by 1.
- FR1.10: Load studentβs registered events on a calendar view.
- FR1.11: Allow exporting registered events as
.icscalendar file.
- FR2.1: Login via Supabase OAuth and redirect to admin dashboard.
- FR2.2: View all event listings.
- FR2.3: Mark event listings as βnon-viewableβ (soft delete/ghost).
- FR2.4: Select an event and view its registered users.
- FR2.5: Remove a user from an event manually with confirmation.
- FR2.6: Automatically update available slots on user removal.
- FR2.7: Export list of users registered for an event as a downloadable CSV.
- FR3.1: Login via Supabase OAuth and redirect to organiser dashboard.
- FR3.2: View user registration list for a specific event.
- FR3.3: Export registration list for an event as a downloadable CSV.
- NFR1: Enforce OAuth-based secure login and role-based access control (RBAC).
- NFR2: All sensitive operations must require authentication and authorization.
- NFR3: Event listing and filtering must return within 300ms for a typical request.
- NFR4: Calendar loading and ICS export must scale to support 1000+ events per user.
- NFR5: System should handle concurrent event registrations and prevent race conditions.
- NFR6: Ensure high availability of critical endpoints (login, register, cancel).
- NFR7: Use Supabaseβs real-time features or database triggers to keep user calendars in sync.
- NFR8: System should gracefully handle failure cases (e.g., email server down, database connection issues).
- NFR9: All user interactions should have immediate feedback (e.g., spinners, success/failure toasts).
- NFR10: Calendar UI should support responsive design and work across browsers.
- NFR11: Use structured logging and tracing for all critical user actions.
- NFR12: Support feature toggles for optional features like confirmation emails.
- NFR13: Exported files (CSV, ICS) must adhere to proper standards and encoding (UTF-8).
- NFR14: File exports should auto-trigger download with proper naming conventions.
- Amount of users able to support 70-80% of NTU population
- Deployed on cloudflare pages
- backend is deployed using a CICD pipeline found in .github/workflows
- Docker Desktop installed and running
- Visual Studio Code with the Dev Containers extension
- Git for cloning the repository
git clone https://github.com/jackOfNoTradess/SummerBuild
cd SummerBuild- Open VS Code in the project directory:
code . - When prompted, click "Reopen in Container" or:
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) - Type "Dev Containers: Reopen in Container"
- Select the option and wait for the container to build
- Press
Once the container is running, verify the environment:
java -version
mvn -version
node --version
docker --version-
Initialize Supabase:
supabase init
-
Start Supabase locally:
supabase start
-
Configure database connection in
application.properties:- check after you run supabase start
spring.datasource.url=jdbc:postgresql://localhost:54321/summerbuild spring.datasource.username=your_username spring.datasource.password=your_password
-
Run Flyway migrations:
cd Backend mvn flyway:migrate
cd backend
mvn clean install
mvn spring-boot:runcd frontend
npm install
npm run devmvn flyway:migrate # Run migrations
mvn flyway:info # Show migration status
mvn flyway:clean # Drop all objectsPurpose:
Applies all pending migration scripts to the database.
When to use:
- After adding a new migration SQL file
- When syncing your local DB schema with the latest version
- On application startup (if auto-run is configured in Spring Boot)
Command:
mvn flyway:migrate
Purpose:
This command drops all database objects (tables, views, constraints, etc.) in the configured schema. It resets the entire schema.
π΅οΈββοΈ When to Use
Only use flyway:clean in development or testing environments:
- To wipe the database and start from scratch
- When schema changes or migrations are broken and unrecoverable
- Before re-running a full migration set for a clean slate
- Create a new migration:
supabase migration new <migration_name>- Edit the generated SQL file in
supabase/migrations/:
- Do this only to amend bucket policies. ALL postgres migrations use flyway
-- Example: 20240606000001_create_users_table.sql
CREATE TABLE users (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
email VARCHAR(255) UNIQUE NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);- Apply migrations to local database:
supabase db push --local- Reseting Supabase
supabase reset



