GithubHelp home page GithubHelp logo

shundev / demo-amplify-storage-file-upload Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swyxio/demo-amplify-storage-file-upload

0.0 0.0 0.0 80 KB

Full Amplify Storage demo showing how to build an app to upload and navigate files in AWS S3

Home Page: https://dev.to/swyx/amplibox-a-self-hosted-file-storage-app-with-aws-amplify-1f6g

License: MIT License

JavaScript 16.94% CSS 2.65% HTML 1.15% Svelte 79.26%

demo-amplify-storage-file-upload's Introduction

AmpliBox

Full Amplify Storage demo showing how to build an app to upload and navigate files in AWS S3

amplibox1

I would really love to give you a live demo but you can understand the security issue here. Instead, you should deploy it for yourself!

amplifybutton

โš ๏ธ Note that this demo is designed explicitly for educational purposes around Amplify Storage - you still need to add authentication if you are to release it for broader production use. You can also run amplify delete when you are done to remove all resources provisioned.

Features demonstrated

  • Upload file with progress bar
  • List files (with metadata)
  • Delete files
  • Download files
    • we use programmatic downloads here, but left instructions for signed URL downloads in DownloadButton.svelte
  • Create folder
  • Toast success/failure

Possible extensions left as an exercise to reader:

Local Development

If you clone this repo you will need to setup an AWS Amplify environment for your project. Assuming you have the Amplify CLI installed and configured:

amplify init # default answers all fine
amplify add storage # pick Content, default answers all fine, add auth if asked

amplify push # this step provisions your project resources in the cloud (long)

If you want to run this project locally, install the dependencies...

npm install

...then start webpack:

npm start

Navigate to localhost:8080. You should see your app running. Edit a component file in src, save it, and the page should reload with your changes.

Deploying to the web

You can deploy to Amplify Console or any other static site host. Before you deploy, we recommend creating a new repo and pushing your code there so as to automatically set up CI/CD for you.

amplify add hosting # customize as needed

amplify publish # to actually publish to the open web (long)

Help me share this

If you liked this demo, you can help me share it on Twitter or signup to my YouTube!

demo-amplify-storage-file-upload's People

Contributors

swyxio avatar

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.