A Next.js application for booking classrooms at IT Campus when they're not in use.
- Frontend/Backend: Next.js 14 (App Router) + TypeScript
- Styling: Tailwind CSS
- Database: Supabase (PostgreSQL)
- Deployment: Vercel + Supabase Cloud
- Node.js 18+ and npm
- Git
- A Supabase account (free tier is fine)
git clone https://github.com/threehappypenguins/campus-booking.git
cd campus-bookingnpm installBash/zsh:
cp .env.example .env.localPowershell:
copy .env.example .env.local- Make sure you're logged into Supabase
- Navigate to the Data API page and copy the Project URL and paste it into
.env.local - Navigate to the the API Keys page and copy the
anonpublickey and paste it into.env.local
Never commit your .env file to Git! It's already in .gitignore.
To run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
- Go to the Supabase project > SQL Editor
- Paste and run the SQL from
supabase/schema.sql - Use the Table Editor to view/modify data
To complete your issue you’re going to need a branch for the issue. All your branches should be created from dev, not main. You can do either git checkout -b <branch_name> dev on the command line or you can use VS Code’s visual tool. Click on the branch name on the bottom left of your editor and it will pop up a box at the top that has an option "Create new branch from…"
Before making your pull request, make sure you run all tests and run npm run build. Any code you’re proposing to commit is expected to be in a functional state.
Pull requests can be created on Github. Link the issue. This can be done by added closes #<issue_number> in your PR description.
Sometimes, while you're working on your branch, someone will make changes that are merged to main and you might need those changes into your branch.
- In the Source Control tab, hover over "Changes" to select the 3 dots and click.
- Select
Fetchto get the latest commits from GitHub without changing your local branches yet. - This will pull the updates from main into your local Git history.
- In the bottom-left branch menu, select the branch you want to update (if you're not already on it).
- Open the Command Palette:
Ctrl+Shift+P(Windows) orCmd+Shift+P(Mac). - Type Git: Merge Branch → select it.
- Select main as the branch to merge into your current branch.
- VS Code will attempt the merge. If there are conflicts, the editor will show you in the GUI with options to accept changes.

