Skip to content

RodBennett/11-daily-notetaker-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

11 Express.js: Note Taker

Overview

This app is a notetaker that receives and saves data from a client in a .json file for the client to retrieve later. The puprose of the app is to help people make lists of notes and todos, and store and retrieve the data when necessary.

When the user starts the app, they come to a landing page that looks like this:

Screen Shot 2022-09-08 at 5 01 51 PM

After clicking "Getting Started" the client comes to a page that looks like this:

Screen Shot 2022-09-08 at 5 03 47 PM

When the client clicks on any of the notes in the left hand-side, it presents with a full note with title and text of the note.

Screen Shot 2022-09-08 at 5 05 31 PM

Client can also delete notes by clicking on the trash icons as follows:

Screen Shot 2022-09-08 at 5 06 23 PM

And of course users can add notes any time they like using the '+' icon, and then save the notes using the "Save" icon

Screen Shot 2022-09-08 at 5 07 42 PM

Challenges

While this assignment only called for about 60 lines of code on the server.js file, there were 2 tricky parts that required quite a bit of time. First, getting the notes to save in the db.json file as objects in an array took a bit of time and research to figure out. Finally learned it required a fs.readFileSync and well as JSON.parse and finally fs.writeFileSync to accomplish that task.

The other challenge was in the bonus part for deleting. Getting the notes to delete was no problem as the starter code had already created a function for that, but getting the index set up correctly to delete only the selected note took a bit of time to solve as well.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published