/basic-api-server

Primary LanguageJavaScriptMIT LicenseMIT

basic-api-server

Version 1.0.00

Deployed Sites & PR

Author

Heather Bisgaard, Software Engineer

Collaborators

Tom McGuire, Software Dev Charlie Fadness, Software Dev Phil Murphy, Site Reliability Engineer Kris Esvelt, Tutor helped with testing

References

UML

Set Up Notes for Basic Express Server to Test

  1. Create a .env file and SAMPLE.env, make sure the .env is in .gitignore file.

  2. Make sure to set up directories for error handlers, middleware and tests to modularize code. Then touch the server.js, index.js, and any handler, middleware and test files needed.

  3. Make sure to npm init and then npm i the dependencies needed for express, dotenv, jest, supertest. Then make sure "start": "node index.js" and "test": "jest --coverage", are in your scripts section of package.json.

  4. Write your routes, tests, etc.

  5. Set up Actions in GitHub. Still not sure how to do these, will update in next update on what I've researched.