Skip to content

afif95/nextjs-the-wild-oasis

Repository files navigation

Project Description

The Wild Oasis - Hotel Management Application

This is a Next.js project bootstrapped with create-next-app.

Frontend:

  • Framework: React, Next.js (App Router)
  • Styling: Tailwind CSS, responsive design

Features:

  • 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.

Backend:

  • 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.

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

drawing

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Running Locally

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.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.

Deployed App:

https://nextjs-the-wild-oasis-mu.vercel.app/