Skip to content

paulwongx/fcc-stock-price-checker

Repository files navigation

FreeCodeCamp- Information Security and Quality Assurance

Project Stock Price Checker

  1. SET NODE_ENV to test without quotes and set DB to your mongo connection string
  2. Complete the project in routes/api.js or by creating a handler/controller
  3. You will add any security features to server.js
  4. You will create all of the functional tests in tests/2_functional-tests.js

Learning Notes

  1. Example of how to get user ip via header
  2. Example of .then() statement to call function and get data within returned object
  3. Example of MongoClient.connect in await/async style
  4. Example of function calling MongoClient.connect in await/async so variable can be returned in main function
  5. Example of using node-fetch npm
  6. Example of getting data from body of fetch() via await/async
  7. Example of using findOne() in MongoDB to retrieve returned object
  8. Example of using findOneAndUpdate() in MongoDB with upsert and returnNewDocument
  9. Example of naming db and collection separately in MongoDB
  10. Example of Chai.js tests with added header to detect IP using set()
  11. Example of using regex in Chai.js
  12. Example of using assert .property(), .typeOf(), isAbove(), .match(), in Chai

About

Freecodecamp project completed on 2020-03-02

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published