Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.26 KB

File metadata and controls

49 lines (37 loc) · 1.26 KB

CF LAB

Book App v2

Author: Jagdeep Singh

Links and Resources

Setup

.env requirements

  • PORT - Port Number
  • DB - set equal to 'mongo' or 'postgres' depending on which database to use
  • DATABASE_URL - URL to the running postgreSQL instance/db
  • MONGODB_URI - URL to the running mongo instance/db

Running the app

  • npm start
  • Endpoint: /foo/bar/
    • Returns a JSON object with abc in it.
  • Endpoint: /bing/zing/
    • Returns a JSON object with xyz in it.

Tests

  • How do you run tests?
    • npm test

UML

Link to an image of the UML for your application and response to events