GithubHelp home page GithubHelp logo

abhisumant-2371 / hotel-booking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from htoann/hotel-booking

0.0 0.0 0.0 3.75 MB

Hotel booking website using NextJS and NodeJS

Home Page: https://bookingroom.tech

License: MIT License

JavaScript 15.32% TypeScript 83.97% CSS 0.71%

hotel-booking's Introduction

โœˆ Hotel Booking ๐Ÿจ

Find your next stay

Search deals on hotels, homes, and much more...

Clone or download

$ git clone https://github.com/htoann/Booking-Hotel.git
$ yarn # or npm i

Project structure

LICENSE
package.json
server/
   package.json
   .env (to create .env, check [prepare your secret session])
client/
   package.json
...

Usage

Notice, you need client and server runs concurrently in different terminal session, in order to make them talk to each other

Client side usage (PORT: 3000)

$ cd client
$ yarn # or npm i
$ npm run dev
// deployment for client app
$ npm run build
$ npm run start

Server side usage (PORT: 8000)

Prepare your secret

(You need to add a JWT_SECRET in .env to connect to MongoDB)

Start

$ cd server
$ npm i
$ npm run dev
$ npm run build

Deploy Server to Railway

Environment variables

# 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 = 

Standard

JavaScript Style Guide

BUGs or comments

Create new Issues (preferred)

Author

Le Cong Ly

Tran Huu Toan

hotel-booking's People

Contributors

htoann avatar amazingandyyy avatar lecongly avatar jsoref avatar amjasser avatar equimper avatar farhan787 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.