node-express-notes-app's Issues
The following HTML routes should be created:
The following API routes should be created:
Your challenge is to create an application called Note Taker that can be used to write and save notes. This application will use an Express.js back end and will save and retrieve note data from a JSON file.
It's your job to build the back end, connect the two, and then deploy the entire application to Heroku.
Add a system logging database for admin purposes.
Having a database that is used to log overall things the EU can not control gives me the ability to track usage and overall things I care about.
DELETE route to the application using the following guideline:
In order to delete a note, you'll need to read all notes from the db.json file, remove the note with the given id property, and then rewrite the notes to the db.json file.
WHEN I click on an existing note in the list in the left-hand column
THEN that note appears in the right-hand column
WHEN I click on the Save icon
THEN the new note I have entered is saved and appears in the left-hand column with the other existing notes
When loading, if Database does not exist creates a new one.
Add Jest testing into APP
WHEN I open the Note Taker
THEN I am presented with a landing page with a link to a notes page
User is able to make edit to notes.
When a user selects an existing note and it's rendered with function renderActiveNote()
, able to edit note and then update.
The current function: 👇🏼
const renderActiveNote = () => {
hide(saveNoteBtn);
if (activeNote.id) {
//-- TODO:: 01/23/2022 #EP || Ability to edit a note.
//noteTitle.setAttribute('readonly', true);
//noteText.setAttribute('readonly', true);
noteTitle.value = activeNote.title;
noteText.value = activeNote.text;
} else {
noteTitle.removeAttribute('readonly');
noteText.removeAttribute('readonly');
noteTitle.value = '';
noteText.value = '';
}
};
WHEN I enter a new note title and the note’s text
THEN a Save icon appears in the navigation at the top of the page
AS A small business owner
I WANT to be able to write and save notes
SO THAT I can organize my thoughts and keep track of tasks I need to complete
Build the API backend for Note-Taking Applicatoin and publish on Heroku
Removing routing from server.js for API and HTML
Right now, they're all built into server.js
. Now that I've verified it works, I need to modularize it.
WHEN I click on the link to the notes page
THEN I am presented with a page with existing notes listed in the left-hand column, plus empty fields to enter a new note title and the note’s text in the right-hand column
Update CSS so it's mobile-friendly.
Content is overflowing and can not be read.