outmoded / university

Community learning experiment
Other
371 stars 193 forks source link

v0.1.1 assignment1 Let's Get Started #261

Closed zoe-1 closed 6 years ago

zoe-1 commented 6 years ago

[Assignment1] Let's get started!

First, we need some basic structure: a lib folder, a package.json file, and an initial ./lib/index.js. Since we will be using hapi, we need to include that in the project dependencies.
Second, create a basic hapi server on port 8000 which responds to /version requests and replies with a simple { "version": "0.0.1" } JSON payload. The version data in the response should come from the package.json file.

Original Assignment1

Assignment1 solution