File server implemented using Node.js for personal use. Currently supports uploading and downloading a file.
CURL
-X POST
-H "Content-Type: multipart/form-data"
-F "data=@/path/to/file"
http://localhost:port/file/upload/:id
Every user can have a root directory. id is root directory name.
CURL
-X POST
-H "Content-Type: application/json"
-d '{"filePath":"public/:id/filename.ext"}'
http://localhost:port/file/upload/:id
-o filename.ext
Clone the repository and
npm install
npm run dev OR npm start
npm run build