Node version 20.x
git clone https://github.com/trantien0410/admin-vatibnb.git
npm i
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
npm run dev
Running commands with npm npm run [command]
command | description |
---|---|
dev |
Starts a development instance of the app |