Skip to content

Sample app to show use of web frontend technologies

Notifications You must be signed in to change notification settings

cohesivedev/lrgk-hotels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LateRooms Group FE Kata

An online version of this project is hosted here:

http://cohesive.dev/lrgk-hotels/hosted

Running locally

Prerequisite: run yarn to install all project dependencies.

Project is split into 2 parts:

  1. Mock REST API, which is a façade remote data source.

  2. Frontend, which displays and filters data.

Start both to run the project!

Running tests

yarn test will run all tests within the codebase, and report on coverage can be found in coverage/index.html.

  • Most important bits to test are where data is being manipulated or otherwise transformed for later consumption
  • Least important bits to test are the areas of glue code or code that is easily tested by a simple smoke test / run through of the happy path

Creating a production build

yarn build will generate the production HTML and JS resources

This project can also run its mock API on the Heroku PaaS, just create a new pipeline, add an app and point the pipeline to this repo, the Procfile is preset and ready to use.

Notes

  • Would be better using a CSS-in-JS lib
  • UI design could be better, focus is around showing real React/Redux code