@unfie555/tammy-notes
v1.0.1
Published
Lab 04 for CF JS 401 Nights
Downloads
1
Readme
LAB 04
Project Name: Advanced Mongo/Mongoose
Author: Tammy Ip
Links and Resources (see below) submission PR: https://github.com/tammyip-401-advanced-javascript/notes/pull/5
Documentation JSDoc Comment Required for all modules and functions in all .js files https://jestjs.io/docs/en/configuration https://jsdoc.app/about-getting-started.html Minimist https://github.com/substack/minimist
Setup To run locally, run npm i from the root directory. MONGODB_URI - URL to the running mongo instance/db - mongodb://localhost:27017/app
How to use package
npm i minimist
npm i mongodb
npm i mongoose
Once the package is installed through npm or ran locally through the repo, enter commands using the following formats:
To add note to the database: -a or -add 'This is an apple'
To list notes from the database: -l or -list
To delete a note in the database: -d insertIDhere
Tests Testing command: npm test from the root directory. npm test input.test.js npm test notes.test.js npm test validator.test.js
UML https://docs.google.com/spreadsheets/d/1GKui7hNGYuwxLTWTjpPQWVI3OkBME0HOB_tgB6olP4I/edit?usp=sharing