😊 A Service for Online Hotel Reservation and Management System 💯

By Tran Van Tien

VatiBnb

Getting Started

Prerequisites

Node version 20.x

Cloning the repository

git clone https://github.com/trantien0410/admin-vatibnb.git

Install packages

npm i

Setup .env file

DATABASE_URL=
NEXTAUTH_SECRET=
  • For Database url, we can get it from MongoDB. After getting it from MongoDB, then you need to turn on the terminal and run the following command:
npx prisma db push
npx prisma generate
  • For NextAuth Secret, key we can use like NEXTAUTH_SECRET

Start the app

npm run dev

Available commands

Running commands with npm npm run [command]

command description
dev Starts a development instance of the app