GithubHelp home page GithubHelp logo

dashpilot / quickstart-netlify-spaces Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 41 KB

Netlify functions for working with S3/DO Spaces. It uses Netlify Identity for authentication, so you can let users log in and, edit the site, and save images and json data to Digitalocean Spaces or Amazon S3

JavaScript 51.01% HTML 28.78% CSS 20.21%
netlify digitalocean-spaces amazon-s3 netlify-functions netlify-identity

quickstart-netlify-spaces's Introduction

netlify-spaces

Netlify functions for working with Amazon S3/Digitalocean Spaces. It uses Netlify Identity for authentication, so only logged-in users can make requests to S3/Spaces.

How To:

1. Deploy this repo to Netlify

Deploy this repo to Netlify using the 'Deploy to Netlify'-button below:

2. Add your S3 credentials as environment variables

In Netlify, go to settings > environment and create the following environment variables for your Amazon S3 or Digitalocean Spaces settings

S3_ENDPOINT: your S3/Spaces endpoint (e.g ams3.digitaloceanspaces.com)
S3_KEY: your S3/Spaces key
S3_SECRET: your S3/Spaces secret
S3_BUCKET: your S3/Spaces bucket

3. Enable Netlify Identity and log in

In Netlify, go to 'Identity' and press 'Enable Identity'
Log in to your website via /login
After login, you'll be redirected to the homepage, where you can test the integration with S3/Spaces

4. Press the ⭐ button

Don't forget to press the ⭐ button to let me know I should continue improving this project

quickstart-netlify-spaces's People

Contributors

dashpilot avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

quickstart-netlify-spaces's Issues

Actually Upload an Image?

Thanks for creating this. It's very useful. Question I have is that your code only allows for a json file to be uploaded.

 let data = {
                title: "Hello world. This is some text.",
            };

How do we define this so we can upload an image? I know in our save.js file you have option for this, but how do we send a file to that action?

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.