Giter Club home page Giter Club logo

spartanhotels's Introduction

Spartan-Hotels

CMPE 165 Project

Running on Heroku Server

https://spartanhotels.herokuapp.com/

MERN STACK

1. MySQL(JAWSDB on Heroku) - user, booking, hotel, room, reward, images, transactions
2. Express - Backend framework
3. React - Frontend library - component based design - communication with backend over AJAX/Axios
4. Node - Backend JS env - handles API calls and manage DB

Features

1. Register - Input and DB Validation

2. Search - Autocomplete (via Google Places API) and Filter

3. Search Result - Map Navigation (with Google Maps API), Filter, Sort

4. Payment - Integrated with Stripe API

5. Booking History - Modify/Cancel booking - DB update

Local Setup

Client

  1. Inside /client, npm install to install dependencies and create ".env" file containing the following (replace YOUR_KEY)
  2. REACT_APP_AUTOCOMPLETE_URL=https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&libraries=places
  3. npm start to start react on port 3000
  4. http://localhost:3000/ should automatically open up Any changes in /client should automatically reloaded in browser

Server

Inside /server,
npm install to install dependencies
npm start to start react on port 3001
To view express server in browser, open http://localhost:3001/

Postman test

The post request already saved in Spartan Hotels folder called Reservation, Reservation/cancellation, and Reservation/modify

spartanhotels's People

Contributors

rockstar601 avatar

Stargazers

sanjaya avatar Web developer avatar neverVector avatar  avatar windev0609 avatar

Watchers

 avatar

Forkers

wind2023storm

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.