vvscode / js--beamtrail-tt

Home Page:https://beamtrail-tt.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Booking phones

You could find original task in ./docs directory

Demo: https://beamtrail-tt.herokuapp.com/

Run:

  1. clone
  2. install dependencies with npm install
  3. run npm run dev

Db:

Current implementation of Db - just a single json file, which is dumped on every change. Work with db incapsulated to separate class, so it's easy to migrate from existing implementation to any other.

API

  • /api/phones - returns list of phones
  • /api/phone/book - { phone, name } - book phone, if it's possible
  • /api/phone/return - {phone, key} returns phone if it's possible

About

https://beamtrail-tt.herokuapp.com/


Languages

Language:JavaScript 97.6%Language:CSS 2.4%