@unfie/tammy-notes

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i @unfie/tammy-notes

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

16.8 kB

Total Files

16

Last publish

Collaborators

  • unfie