Bucket is an objects storage server built in NodeJS to serve apps as a standalone microservice via RESTful API.
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.
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
Retrieve an object from the bucket
Send a GET request /object/*
where *
is the object id, the output should be the file from server.
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.
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"
}
Coming soon, meanwhile we’d be happy to hear from you some feedbacks
© 2017 - MIT License