A simple node.js app that allows a user to store a string of their choice using a unique identifier and retrieve this back by navigating to a URL that corresponds to the note ID.
As a user with something to say, so I can access a copy of my notes from anywhere, I would like to be able to save a string online
As a user with a bad memory, so I can look at my notes whenever I need them, I would like to be able to retrieve my saved strings
- User
- Note
- String
- Identifier
- Say
- Access
- Save
- Retrieve
- Look
- Use
- git clone the repo to your local machine and
cdto directory cd notes-savernpm install
- Navigate to
notes-saveron command line npm start- In a new terminal pane enter
curl http://localhost:3000/notes -d 'hello, I am a message' - Take a note of the ID in the response message
- If not already started, navigate to
notes-saveron command line and start the node servernpm start - In a new terminal pane enter
curl http://localhost:3000/notes/<ID SAVED FROM PREVIOUS STEP> - The saved note should be returned as a string
- Navigate to
notes-saveron command line - Install dependencies if not already done so with
npm install - Run
npm test
Fix failing test that verifies blank strings and refused when sent to /notes POST. This functionality is working but the test relies on a response using chaiHttp that isn't received.