Code Monkey home page Code Monkey logo

hotel-booking-full-stack-application.'s Introduction

Hotel Booking Full-stack Application.

Using Springboot and ReactJS

Backend with springboot

Dependency

  1. spring-boot-starter-data-jpa
  2. spring-boot-starter-web
  3. spring-boot-devtools
  4. mysql-connector-j
  5. lombok
  6. commons-lang3
  7. spring-boot-starter-validation

How to run

### STEPS:

STEP 01- Open XAMPP Control Panel and start Apache and MySQL

Note: MySQL run on port 3306 locally

i.e localhost:3306

create a database with the name zipcode_application_backend

STEP 02- Navigate to the project root folder

i.e

root:\Backend [Springboot]\lakeside_hotel

STEP 03- In the Backend [Springboot]\lakeside_hotel folder open in cmd and package using

mvnw package

STEP 04- in the In the Backend [Springboot]\lakeside_hotel folder navigate to the target folder and open in cmd

java -jar zipcode_application_backend--0.0.1-SNAPSHOT.jar

Note: The port has been changed to port 9091 i.e localhost:9091

API documentation

Base URL

BASE_URL

http://localhost:9091/api/v1

To add new Room


POST Request

BASE_URL/room/add/new-room

To get all Room


GET Request

BASE_URL/rooms/room-types

To delete Room by ID


DELETE Request

BASE_URL/rooms/delete/room/{roomId}

To update Room by ID


PUT Request

BASE_URL/rooms/update/{roomId}

To get Room by ID


GET Request

BASE_URL/rooms/room/{roomId}

To Book Room


POST Request

BASE_URL/bookings/room/{roomId}/booking

To get all Booked Room


GET Request

BASE_URL/bookings/all-bookings

To get Booked Room by confirmation code


GET Request

BASE_URL/bookings/confirmation/{confirmationCode}

To delete Booked Room by ID


DELETE Request

BASE_URL/bookings/booking/{bookingId}/delete

Frontend with React JS

Dependency

  1. axios
  2. bootstrap
  3. moment
  4. react-bootstrap
  5. react-router-dom
  6. react-icons

How to run

### STEPS:

STEP 01- Open Project Root Folder using Terminal and navigate to the Frontend_React_JS\lakeside_hotel folder

For windows

cd Frontend_React_JS\lakeside_hotel

STEP 02- Run the React Project Using "npm run dev"

    npm run dev

Screenshot

hotel-booking-full-stack-application.'s People

Contributors

adebayoadesina avatar

Watchers

 avatar

Forkers

damilolabadmus

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.