Code Monkey home page Code Monkey logo

dp2-react-template-deploy's Introduction

DP2 react dummy deploy

This project has the purpose to show how to deploy a reac app into a AWS S3 bucket.

Run It

First, git clone the project and enter to the project folder. Then, follow the next instructions:

  • Install all package dependencies
npm install

Run in development mode:

  • Runs the application is development mode. By defaullt it runs on port 3000.
npm start

Now got to http://localhost:3000/

Deploy to AWS S3 bucket:

  • Deploys the app to an aws S3 bucket.
  1. Make the build folder, wich will contain all required files for our app.
npm run build

img

  1. After the execution of that command, you will be able to see a new folder: "./build".
  2. Log in into your aws account and create an S3 bucket with all read permissions enabled.
  3. In the created bucket, in the "properties" option switch to "enable" the option to host static web sites.

img

img

  1. Drag all the content of the "build" folder and drag them into the S3 bucket panel to satart to load them.

img

img

  1. Select all files to load.
  2. Allow public read to everybody.

img

img

  1. Once all the files have been loaded correctly, in your browser go to the corresponding URL to check the app runnig.

dp2-react-template-deploy's People

Contributors

jinssj3 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.