FedorArbuzov / react-and-express

react app with express backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rando

A password generator built with React and Express.

This is a minimal demo of using Create React App to bootstrap a React project, connect the React app to an Express backend, and deploy the whole thing to Heroku.

Read the blog post: Create React App with Express in Production

Prerequisites

You need to sign up for a Heroku account if you don't already have one, and install the Heroku toolbelt. (On a Mac with Homebrew, just run brew install heroku).

Deploy to Heroku

To deploy:

  1. Clone this repo.
  2. Inside the repo directory, run heroku create (requires Heroku toolbelt).
  3. Run git push heroku master to simultaneously deploy the frontend + backend to Heroku.

Using NPM

Check out the npm branch if you're not using Yarn:

git checkout npm

And then once on that branch, the deploy command is:

git push heroku npm:master

About

react app with express backend

License:MIT License


Languages

Language:JavaScript 80.5%Language:HTML 14.6%Language:CSS 4.9%