GithubHelp home page GithubHelp logo

tci-react-s3's Introduction

Boilerplate Example for React App on S3

This is a simple demo app for creating and installing react on S3

React app scafolding was generated with Create React App

Only compatible with *nix style operating systems (ie, Linux / Mac OSX)

Setup and Running Example

  1. clone repo
git clone https://github.com/amcquistan/tci-react-s3.git
cd tci-react-s3
  1. install npm packages
npm install
  1. Install aws cli

Consult AWS CLI docs and configure with IAM user who can perform full programmatic CRUD on S3 within the associated AWS account

  1. Create the following environment variables
REACT_BKT_NAME=name-of-bucket-to-host-from
AWS_PROFILE=aws-profile-to-utilize
AWS_REGION=aws-region-for-bucket
  1. Run locally
npm run start
  1. Create an S3 bucket for hosting a static website
npm run createbkt
  1. Deploy example app to bucket
npm run deploy
  1. Clean up and delete bucket
npm run deletebkt

tci-react-s3's People

Contributors

sciguymcq avatar

Watchers

James Cloos avatar Adam Mcquistan 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.