Coder Social home page Coder Social logo

koddr / do-spaces-microservice Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 171 KB

🧺 Microservice for upload, remove and list objects to/from your DigitalOcean Spaces. Production-ready, zero configuration, working out of the box!

Home Page: https://shostak.dev/

License: Apache License 2.0

Dockerfile 2.50% Go 96.21% Makefile 1.28%
digitalocean microservice do-spaces

do-spaces-microservice's Introduction

🧺 Microservice for DigitalOcean Spaces

do-spaces-microservice version go version go report license

Upload, remove and list objects to/from your CDN. Production-ready, zero configuration, working out of the box!

⚡️ Quick start

Sign in to your DigitalOcean account.

Don't have an account yet? Join DigitalOcean at our referral link! Your profit is $100 and we get $25. This will allow you not to think about paying for Spaces for 10 months, and we will send the money received to support the Komentory project servers.

Next, create your own Spaces and upload folder with permissions. Go to the Spaces access keys section at the Manage Keys page and create a new keys. Save them to a notepad for later!

OK, now we're ready to click this button:

Deploy do-spaces-microservice to DO

After that, please fill all of the following environment variables (all variables are required):

Screenshot

Choose name of your web service (which will be displayed in the Spaces URL, like https://your-web-service.ondigitalocean.app), region and a Basic plan ($5/mo) for start. Click to Launch Basic App and get our congratulations.

You have successfully deployed microservice to DigitalOcean! 🎉

📖 Next steps

Open your favorite REST API tool and send requests:

  • GET /v1/list (get all objects from upload folder)
    • Request body (JSON): none
  • PUT /v1/upload (put object to upload folder)
    • Request body (JSON): { "type": "<TYPE>", "path": "<PATH/TO/FILE>" }
    • Supported types: archive, audio, document, image, video
  • DELETE /v1/remove (delete object from upload folder by object key)
    • Request body (JSON): { "key": "<OBJECT_KEY>", "version_id": "<ID>" }

⚠️ License

do-spaces-microservice is free and open-source software licensed under the Apache 2.0 License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.