This project was an activity using express.js to create a server and backend functionality and link it to a front end note-taker application. The goal of this project was to generate a note-taker application where the user could enter notes, save them, view notes previously entered, and delete notes.
This project helped me understand how the back end is linked to the front through a series of GET and POST functions within the backend structure as well as FETCH structures in the front end javascript. I learned how to require express, as well as modularize the code to make it easier to read.
If the user already has node installed on their device, they can download this project and run “npm init” and then “npm i express” to download the express dependecy. If they are interested in running the tests, enter “npm i –save-dev jest”. Next, the user should enter “npm start” to launch the server and then view the website at localhost:3001.
When the user navigates to the server’s page (localhost:3001), they will be presented with a title page.
When they click on the “Get Started” button, it will take the user to the note-taker page. From here, previous notes saved in the database will desplay on the left side of the page, with a delete button next to them. The user is also given a “+” button at the top right of the page. When they click on this “+” button, they can create a new note and save it using the POST functionality.
Unfortunately, while I have set up the GET and POST functionality to get all the notes saved as well as locate individual notes and post new notes, I have not fully figured out what is missing in the front-end javascript to make it work. The current project is displaying nothing on the note page and does not allow me to save new notes.
Image of working “GET”:
Image of working “GET single note”:
Image of working “POST”:
Link to video of project:
The link to the project is here: https://stark-journey-80050.herokuapp.com/
The url of the Git repository is here: https://github.com/Samantha-Ruth/Note-Taker
If you have any questions about the repo, open an issue or you can find more of my work at (https://gitHub.com/Samantha-Ruth).