Giter Site home page Giter Site logo

pamcy / react-hotel-booking-ajax Goto Github PK

View Code? Open in Web Editor NEW
29.0 3.0 14.0 1.18 MB

Build a hotel booking website with React, React Router and Axios.

Home Page: https://react-hotel-booking.netlify.com

HTML 2.29% CSS 34.63% JavaScript 63.07%
react react-router axios ajax-request form-validation datepicker

react-hotel-booking-ajax's Introduction

Hotel Booking Site with React Netlify Status

The main purpose of this project is to implement API requests with React, so I create myself a mini hotel booking website like Airbnb. Visitor will be able to check room price and availability in the next 3 months, then fill out the simple form to book a room.

Demo

Live URL: https://react-hotel-booking.netlify.com/

Hotel Booking Site with React The hotel booking template designed and shared by edith.hsu

What I learned from this project

  • Making AJAX API calls (Get, Post) with Axios
  • Displaying Modal with success and error message from API response
  • Handling React Date Picker with response data
  • Form data validation
  • Formatting date in JS
  • Skeleton screen loading effect
  • CSS grid layout
  • CSS only slider

Installation

  1. Clone this repo
  2. Run npm install

Development

  1. npm start: Run the app in development mode.
  2. npm run build: Builds the app for production to the build folder.

react-hotel-booking-ajax's People

Contributors

pamcy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.