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
- Host: GitHub
- URL: https://github.com/thicodes/react-jsonserver-heroku
- Owner: thicodes
- Created: 2018-07-10T17:43:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T20:30:59.000Z (almost 8 years ago)
- Last Synced: 2025-06-24T23:07:30.629Z (about 1 year ago)
- Topics: bitbucket, create-react-app, heroku, json-server, mock, nodejs, react
- Language: JavaScript
- Homepage:
- Size: 155 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)