- Room bookings
- Room cancelations
- User creation & deletion
- Secure login
- Restrict bookings and cancelations to logged in users
-
Clone fake-hotel-be
-
Create .env file and assign values to:
(the port you want to run the server on)
PORT=3003
(the url of your mongodb cluster)
MONGODB_URI="mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]"
(the url of your mongodb cluster for testing)
TEST_URI="mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]"
-
Inside fake-hotel-be run:
npm install npm run
If you want to test your clone, simply run:
npm test
name: String,
people: Number,
nights: Number,
dates: [String],
month: String,
roomId: String,
status: String,
name: String,
description: String,
maxOccupants: Number,
beds: Number,
bookings: [String]
name: String,
year: Number,
bookings: [String]