Giter Club home page Giter Club logo

overlook-hotel's Introduction

Overlook Hotel

  • Click HERE to view the project spec
  • Click HERE to access the Overlook-API (you will need this to run the website locally)

Table of Contents

Abstract

Overlook Hotel is a hotel appointment application that allows a customer to book an room for a future visit.

Tech Used

  • JavaScript
  • HTML
  • Sass
  • Mocha/Chai for testing
  • Fetch API to retrieve and add data (bookings, customers, rooms)

Installation and Set-Up

To install this project, please see below:

1. Clone down this Repository using `git clone`
2. Run `npm install` to install library dependancies
3. Next, run `npm start` and go to `http://localhost:8080/` to view the website
4. To access the data this site is built upon, clone down the Overlook-api using `git clone` into another terminal window (keep the localhost above running)
5. Run `npm install` and `npm start`

After following these steps, you should have access to the fully functioning website.

Features

  • Login page
    • Separate login credentials for Customer vs. Manager (see instructions below)
  • Customer Portal:
    • Customer can view all past, present, and future bookings on portal landing page
    • Customer can see how much money they've spent on all rooms
    • Customer can book rooms for today or upcoming dates, and can filter by room type while searching
    • 100% Chrome Lighthouse Accessibility Audit Score(before login screen was created)

See the Site in Action

To log into the customer side, a user can log in using the following credentials:

username: customer50 (choose a number 01-50 to access different customers)

password: overlook2021

LoginScreen_SparkVideo

Upon Loggin in, the customer should see a dashboard/home page that shows:

  • Any room bookings they have made (past or present/upcoming) and the total amount they have spent on rooms.

homepageOverlookHotel_AdobeCreativeCloudExpress

They should be able to select a date for which they would like to book a room. Upon selecting a date:

  • the customer should be shown a list of room details for only rooms that are available on that date.
  • Then they can filter down those available rooms by room type.
    bookAndFilter_AdobeCreativeCloudExpress

Finally a customer should be able to select a room for booking.

BookARoom_AdobeCreativeCloudExpress

In the event that no rooms are available for the date/roomType selected, display a message fiercely apologizing to the user and asking them to adjust their room search.
noroomstobook_AdobeCreativeCloudExpress

Future Goals

  • Create a manager login and views
  • Apply some more cscc styling especially some fun animations

Created By:

overlook-hotel's People

Contributors

fordo29 avatar robbiejaeger avatar hannahhch avatar dependabot[bot] avatar gracegardner avatar khalidwilliams avatar anewb87 avatar

Watchers

 avatar

overlook-hotel's Issues

Create Room Class

Class Properties -

  • "number": 1,
  • "roomType": "residential suite",
  • "bidet": true,
  • "bedSize": "queen",
  • "numBeds": 1,
  • "costPerNight": 358.4

Accessibility

  • check the site is able to tab through

  • check that the site is available for those that are vision impaired

  • aria tags for audio readers

  • colors contrast enough for those who are color blind

Iteration 2 - Customer Interaction

As a customer:

  • I should be able to select a date for which - [ ] I’d like to book a room for myself
  • Upon selecting a date, I should be shown a list of room details for only rooms that are available on that date
  • I should be able to filter the list of available rooms by their roomType property
  • I should be able to select a room for booking
  • In the event that no rooms are available for the date/roomType selected, display a message fiercely apologizing to the user and asking them to adjust their room search

Refer to the “Add new booking” section from the endpoints table above!

Iteration 3 - Login

  • When first arriving at the site, a user should be able to log in with a username and password.

As a customer:

  • I should be able to login
  • I will see a login page when I first visit the site
  • I can log in with the following credentials:
    username: customer50 (where 50 is the ID of the user)
    password: overlook2021
  • Upon successfully loggin in, I should see my dashboard.

Refer to the “Get single user” section from the endpoints table above!

Create Booking Class

  • "id": "5fwrgu4i7k55hl6sz",
  • "userID": 9,
  • "date": "2022/04/22",
  • "roomNumber": 15,
  • "roomServiceCharges": []

Complete action steps from Grace

  • Mixin for height and width
  • Use const on my query selectors
  • to use a helper function for my conditional in my if statement for the login verification (research)

Iteration 1 - Dashboard

As a customer:
I should see a dashboard page that shows me:

  • Any room bookings I have made (past or present/upcoming)
  • The total amount I have spent on rooms

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.