Giter Club home page Giter Club logo

cyf-hotel's Introduction

CYF Workshop

CYF Hotel Workshop

This workshop is for the Node 3 class, read workshop brief for more information.

This exercise involves implementing various aspects of a hotel booking system. It involves a variety of operations on the database to fetch, insert and update data.

  • index.js - sets up the application for use
  • api/ - routes and application logic for the API
  • views - handlebar templates
  • public/* - each folder contains the front-end code that interacts with the API
  • assets/* - assets including fake data, CSS, JS, images

Installation

Install the dependencies using npm install.

In order to launch the project run npm start and access the website at http://localhost:8080/

Data

ERD

Our data contains three tables from the schema above

  • customers
  • invoices
  • reservations

As mentioned in the brief, there is some data available but for privacy and security reasons you are not able to access the real data. Instead you can generate some fake data to develop your project.

In order to generate the data first run npm install and then npm generate-data. The fake data will be stored in ./public/data.

The data available are customers.json, invoices.json and reservations.json.

User Stories

We are looking at three personas today:

  • Hotel Customer
  • Hotel Receptionist
  • Hotel Manager

The below user stories are exercises which your team can choose to implement

As a < type of user >, I want < some goal > so that < some reason >.

  • As a Hotel Manager, I want to view a list of all customers

  • As a Hotel Manager, I want to view a customers details by their customer account ID

  • As a Hotel Manager, I want to view a list of all invoice

  • As a Hotel Manager, I want to view a an invoice by it's Invoice ID

  • As a Hotel Receptionist, I want to list of all reservations

  • As a Hotel Receptionist, I want to view a reservation by it's reservation ID

  • As a Hotel Customer, I want to view my invoice page so I know how much to pay.

Teams

Each team needs to set up a trello board and create tickets for the tickets for the work you will do.

Your board should have: Backlog, Todo, In Progress and Done lanes, and tickets should be created in backlog from left and move along as they progress to done when they are finished.

Once you agree on your roles as backend/frontend/PM/User Experience, choose a user story from above and assign tickets to work on it collaboratively.

Since you are working in teams you have to agree one fork to contribute to, then you need to give permission to the rest of your team members to be able to contribute to it.

Read: Github - Inviting collaborators to a personal repository

Deliverables

Make sure you have:

  • Something to present by end of the day, even if its a small feature
  • Setup your trello and have some tickets/ideas for next week
  • Consider how to collaborate together, whether by slack or meeting up

cyf-hotel's People

Contributors

dmitrigrabov avatar laurieainley avatar

Watchers

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