An open API service indexing awesome lists of open source software.

https://github.com/thicodes/react-jsonserver-heroku

How to use create-react-app + custom json-server on Heroku
https://github.com/thicodes/react-jsonserver-heroku

bitbucket create-react-app heroku json-server mock nodejs react

Last synced: about 2 months ago
JSON representation

How to use create-react-app + custom json-server on Heroku

Awesome Lists containing this project

README

          

# React + JSON Server on Heroku
How to run react and jsonserver on only one server in Heroku

# Local Development

### Run JSON Server
```bash
# Initial setup
npm install

# Start the server
npm start
```

### Run React client-side
```bash
# Change directory
cd client/

# Inital setup
npm install

# Start the server
npm start
```

# Deploy to Heroku
```bash
git clone https://github.com/thiagoleitedev/react-jsonserver-heroku.git
cd react-jsonserver-heroku/
heroku create
git push heroku master
```

# Credits
* [heroku-cra-node](https://github.com/mars/heroku-cra-node)
* [food-lookup-demo](https://github.com/fullstackreact/food-lookup-demo)