Skip to content

401-advanced-javascript-js/lab-09-api-server

Repository files navigation

CF LAB - 09

API Server

Author: Jagdeep Singh

Links and Resources

Documentation

Modules

modulename.js

Exported Values and Methods
foo(thing) -> string

Usage Notes or examples

bar(array) -> array

Usage Notes or examples

Setup

.env requirements

  • PORT - Port Number
  • 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

  • What assertions were made?

  • What assertions need to be / should be made?

UML

UML of Data Flow

About

API Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published