Skip to content

Bucket is an objects storage server built in NodeJS to serve apps as a standalone microservice via RESTful API.

License

Notifications You must be signed in to change notification settings

devrecipe/bucket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bucket

Travis CI build status Docker build status Docker pulls count Docker stars count License

Bucket is an objects storage server built in NodeJS to serve apps as a standalone microservice via RESTful API.

The bucket supports Gzip compression for static content and access logs.

How to deploy using Docker

In your docker host, run a new container

docker run -d --name my-bucket devrecipe/bucket

And retrieve the container's IP address

docker inspect --format '{{.NetworkSettings.IPAddress}}' my-bucket

How to use the API

  1. Retrieve an object from the bucket

    Send a GET request /object/* where * is the object id, the output should be the file from server.

  2. Add a new object to the bucket

    Send a POST request /upload where * is the object id. request content-type should be multipart form data with a field named file.

    Output should be a JSON with the object id (filename) and its mime type, encoding and size.

  3. Delete existin object from the bucket

    Send a DELETE request /object/* where * is the object id, the output should be a json with this message The requested object is deleted.

In case of an error, (like the requested object doesn't exist) a JSON error will be returned

{
    result: 404,
    message: "The requested object doesn't exist"
}

Securing the bucket

Coming soon, meanwhile we'd be happy to hear from you some feedbacks

Contributors

  • Mohamed Anas Ben Othman
  • Zied Guetari

License

© 2017 - MIT License

About

Bucket is an objects storage server built in NodeJS to serve apps as a standalone microservice via RESTful API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published