Hotel management system built with Next.js, Supabase, and deployed on Vercel.
- Create a project at supabase.com.
- Run the SQL migration files in order from
src/lib/supabase/migrations/in the Supabase SQL editor. - Copy the project URL and anon key from Project Settings → API.
cp .env.example .env.localFill in the values in .env.local:
NEXT_PUBLIC_SUPABASE_URL=https://<your-project-ref>.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=<your-anon-key>
npm install
npm run devOpen http://localhost:3000 with your browser to see the result.
- Push this repository to GitHub.
- Go to vercel.com/new and import the GitHub repository.
- Add the environment variables in the Vercel project settings:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEY
- Deploy. Every push to
mainwill trigger an automatic deployment.
GitHub Actions runs lint and build checks on every push and pull request to main (see .github/workflows/ci.yml). Add the same Supabase environment variables as repository secrets (NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY) for the build step to succeed.