jnitin29 / nodejs-vfsserver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Week 2 Challenge - VFS Server

Time spent: 3 hours

Completed:

  • Required: GET
  • Required: PUT
  • Required: POST
  • Required: DELETE

Walkthrough Gif:

Video Walkthrough

How To Use:

Setup

  1. Follow the Node.js Setup Guide

  2. Clone the repo:

    git clone https://github.com/jnitin29/nodejs-vfsserver.git
  3. Run:

    npm start
  4. 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    

About

License:MIT License


Languages

Language:JavaScript 100.0%