Time spent: 3 hours
Completed:
- Required: GET
- Required: PUT
- Required: POST
- Required: DELETE
Walkthrough Gif:
-
Follow the Node.js Setup Guide
-
Clone the repo:
git clone https://github.com/jnitin29/nodejs-vfsserver.git
-
Run:
npm start
-
Run following CURLs
echo 'To node.js and beyond!' > files/hello.txt curl http://127.0.0.1:8000/hello.txt curl -X PUT http://127.0.0.1:8000/create/a.txt ls -l curl -X POST -d "data=hello, how are you?" http://127.0.0.1:8000/update/a.txt cat a.txt ls -l curl -X DELETE http://127.0.0.1:8000/delete/a.txt ls -l