GithubHelp home page GithubHelp logo

bhickey77 / image-upload-aws-uppy Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 84.35 MB

Lecture repository created for a 40 minute presentation I gave to my Prime Engineering Academy class on a method I created for intuitive image upload with Uppy and AWS S3.

Home Page: https://image-upload-example.herokuapp.com/

HTML 4.30% JavaScript 92.74% CSS 2.96%

image-upload-aws-uppy's Introduction

Image Uploading with AWS S3, Uppy, React, Node PostgreSQL

I created this repo for a lecture that I gave on image handling. I use a combination of the above technologies to handle uploading an image, saving the image on AWS S3, and showing the image with a generated signed URL. I give three examples of varying complexity for the upload user interface.

Database

I am using PostgreSQL. The database name is set to image_upload in the pool.js currently. Change this to something relevant to your project. Create a database with your choosen database name and run the query in the database.sql file.

CSS

Note that in the App.js I have included a line to get the relevant Uppy styles to apply. You may need to change this if you are using a different Type of Uppy component. import '@uppy/drag-drop/dist/style.css';

AWS S3 bucket creation steps

  1. Create AWS account.
  2. Create S3 bucket.
  3. Retrieve keys from AWS
  • Click account username in navbar
  • Select 'My Security Credentials'
  • Select access keys
  • Click 'Create new access key'

Secrets

To use this code you will need to create a .env file with the following information this will require the creation of an AWS account and AWS S3 bucket as detailed above. Make sure that the .env file is in your gitignore. Revealing keys in your Github will result in a barrage of emails from Github and Amazon about the security vulnerability ... I hear.

aws_access_key_id = <aws_access_key_id>
aws_secret_access_key = <aws_secret_access_key>
bucket_name = <bucket_name>```

image-upload-aws-uppy's People

Contributors

bhickey77 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

curtismorice

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.