Skip to content

EsraaMamoun-401-advanced-javascript/notes

Repository files navigation

LAB - Class 04

Project: Notesy

Author: Esra'a Mamoun

Links and Resources

Setup

.env

  • MONGODB_URI - MONGODB_URI=mongodb://localhost:27017/notesy

Modules

  • input.js
  • notes.js

Packages

  • minimist
  • mongoose
  • supergoose

How to initialize/run your application (where applicable)

  • node index.js --add 'your note' --category 'categoru name'
  • node index.js -a 'your note' -c 'category name'
  • node index.js --list 'category name'
  • node index.js -l 'category name'
  • node index.js --delete 'id note'
  • node index.js -d 'id note'
  • node index.js -update 'Id note' --new 'new text'
  • node index.js 'Id note' -n 'new text' OR
  • ./index.js --add 'your note' --category 'categoru name'
  • ./index.js -a 'your note' -c 'category name'
  • ./index.js --list 'category name'
  • ./index.js -l 'category name'
  • ./index.js --delete 'id note'
  • ./index.js -d 'id note'
  • ./index.js --update 'Id note' --newnote 'new text'
  • ./index.js -u 'Id note' -n 'new text'

How to use your library (where applicable)

  • Lint Tests: npm run lint

Tests

  • How do you run tests?
  • Jest test: npm test - to run the test for two files
  • Jest test: npm test input.test.js
  • Jest test: npm test notes.test.js
  • Jest test: npm test notes-collection.test.js
  • console.log

UML

UML

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published