Sign inSign up

dockerkush/cdn-node

By dockerkush

Updated over 3 years ago

CDN Server built using Node.js

Image
0

462

dockerkush/cdn-node repository overview

Open File Server

File server implemented using Node.js for personal use. Currently supports uploading and downloading a file.

Upload a file using CURL
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.

Download a file using CURL
CURL 
-X POST
-H "Content-Type: application/json"
-d '{"filePath":"public/:id/filename.ext"}'
http://localhost:port/file/upload/:id
-o filename.ext
Run Locally

Clone the repository and

npm install
npm run dev OR npm start
Build and Deploy
npm run build
Dependencies

Tag summary

Content type

Image

Digest

sha256:d958ed14f

Size

29.7 MB

Last updated

over 3 years ago

docker pull dockerkush/cdn-node