Skip to content

OptimalBits/servion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

servion

Because handling files in servers is error prone and not DRY. This simple service abstracts file management from your application.

Install

npm install servion

Use

var servion = require('servion');

servion({
 backend: servion.disk({
   path: '/my/files/path',
   temp: '/my/temp/files'
 }),
  port: 8080,
});

POST FILE:

curl --request POST --data-binary "@file.mp4" localhost:8080/my/foo/bar/file.mp4

GET FILE:

curl localhost:8080/my/foo/bar/file.mp4

DELETE FILE:

curl -X DELETE localhost:8080/my/foo/bar/file.mp4

About

A file server written in nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published