Skip to content

MadReal/reserve-nex

Repository files navigation

ReserveNex

Reservation Management for restaurants.

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

Deployment

Add additional notes about how to deploy this on a live system.

Connecting to Supabase and Prisma

  1. Create a project in Vercel by linking it to the GitHub repository of this project.

  2. Integrate the project with Supabase, which will automatically generate the necessary environment variables. Ensure you have the following variables:

    • SUPABASE_JWT_SECRET
    • RESEND_API_KEY
    • ADMIN_EMAIL
  3. Utilize Prisma to interact with your database. Run the following command to generate Prisma client and create your database schema:

    prisma generate

Email Functionality

To send emails from the website:

  1. Create an account on Resend to obtain API keys.
  2. Add the API keys obtained from Resend to your environment variables.

Deployment Commands

To ensure your database is set up and your website is built properly on Vercel, use the following deployment command:

prisma generate && nuxt build

Built With