To Run The App on The front end navigate to notes-frontend folder
run npm i
To Run The App on the back end navigate to basic-api folder
run npm i
For this App to work MongoDB needs to be installed ( Specifically MongoDB Shell ) Steps to create the Database:
-
open Terminal
-
Type mongosh ( pay attention to the port that MongoDB is running on)
-
Create the Document Database by writing
use notes-db
in the MongoDB shell -
Create the note collection by typing
db.createCollection("notes")
The notes collection would look like{ text: "text", link: "link" }
note that theid_
will be generated automatically -
To add some dummy data in the notes collection
db.notes.insertOne({text:"first note", link:"HTTP://first-note"})
-
to check all the elements available in the notes document
db.notes.find()
P.S. To test the backend seperatly you can install Insomnia and test all the endpoints