Table of Contents
To get a local copy up and running follow these simple example steps.
- npm
npm install npm@latest -g
- Get Auth API Keys for Google O-Auth, Cloud name for Cloudinary account and Mongo URI for your MongoDB database. You need to set these up manually.
- Clone the repo
git clone https://github.com/asish918/NextJS-Hotel-Booking.git
- Install NPM packages
npm install
- Enter your API keys in
.env
. Refer the.env.example
file - Generate Prisma types and push to MongoDB
npx prisma generate && npx prisma push
- Refer to the
schema.prisma
file and try to create some dummy data to see actual results. The image url is supposed to be the URL of the image file hosted on Cloudinary - Run the project
npm run dev
Refer to this visual schema to understand better
Distributed under the MIT License. See LICENSE
for more information. Basically you can do whatever the hell you want to with the code 😉
Asish Mahapatra - [email protected]
Project Link: https://github.com/asish918/NextJS-Hotel-Booking