This is a Next.js project bootstrapped with create-next-app
.
- Framework: React, Next.js (App Router)
- Styling: Tailwind CSS, responsive design
- Cabin Exploration: Users can browse available cabins, view details, and images.
- Account Creation: Users can create accounts using Google authentication through NextAuth.js.
- Booking System: Users can book cabins with an optimistic UI, providing immediate feedback before confirmation.
- Database: SupaBase
- Authentication: NextAuth.js with Google Provider
- Server Actions: Handle server-side logic for cabin availability, booking, and account creation.
In essence, this application will provide a user-friendly interface for exploring and booking cabins at the Wild Oasis hotel, leveraging modern web development technologies and a robust backend for authentication and data management.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Create a .env.local file in your root directory. Then insert these variables:
SUPABASE_URL=
SUPABASE_KEY=
NEXTAUTH_URL=
NEXTAUTH_SECRET=
AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
*leak to public in the browser: NEXT_PUBLIC_SOME_VAR=
configure these settings using Supabase, NextAuth.js and Google Developer Console
command (dev mode): npm run dev
command (production): npm run prod
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.js
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.