An open API service indexing awesome lists of open source software.

https://github.com/hack-light/wejapa-week-1


https://github.com/hack-light/wejapa-week-1

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# NOTE APP

## Setting up locally

1. Make Sure you have node and postman installed on your local machine
2. Clone this repository
3. CD into your clone repository
4. Run node sever.js

## Using Postman

### Creating a note

1. Send a POST request to localhost:3002
2. You need the following fields to be filled
- title - this will become the name of the file (Use a single word for this)
- category - this will be a directory that contains the file
- note - this is the content of the file
3. When you are done, inside the cloned directory you will see a Notes directory that houses the files sorted according to their categories(directory).

- This will automatically create a root folder called notes

Initial screenshot
post request
after creation screenshot

### Display File Content

1. Send a GET request to localhost:3002/:category/:filename
- under the path variable section of the params tab fill
- category
- filename.txt

display contents of a file

### Updating File content

1. Send a PUT request to localhost:3002/:category/:filename
- under the path variable section of the params tab fill
- category
- filename.txt
- under the Body of the params tab fill
- notes - this contains the text you want to add

display contents of a file

### Deleting a file

1. Send a DELETE request to localhost:3002/:category/:filename
- under the path variable section of the params tab fill
- category
- filename.txt

before delete
delete
before delete

# Summary

1. Send a GET request to localhost:3002/sumary