Find your next stay
Search deals on hotels, homes, and much more...
$ git clone https://github.com/htoann/Booking-Hotel.git
$ yarn # or npm i
LICENSE
package.json
server/
package.json
.env (to create .env, check [prepare your secret session])
client/
package.json
...
Notice, you need client and server runs concurrently in different terminal session, in order to make them talk to each other
$ cd client
$ yarn # or npm i
$ npm run dev
// deployment for client app
$ npm run build
$ npm run start
(You need to add a JWT_SECRET in .env to connect to MongoDB)
$ cd server
$ npm i
$ npm run dev
$ npm run build
Deploy Server to Railway
# Client .env.local file
NEXT_PUBLIC_API_URL=http://localhost:8000/api
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN=
# Server .env file
JWT_SECRET =
MONGODB_URI =
CLOUD_NAME =
CLOUD_API_KEY =
CLOUD_API_SECRET =
Create new Issues (preferred)