https://github.com/tinavanschelt/redux-starter-with-api
Redux starter with redux-sagas and a fake api (powered by json-server) for playing and prototyping.
https://github.com/tinavanschelt/redux-starter-with-api
javascript json-server react redux redux-saga reselect starter
Last synced: 2 months ago
JSON representation
Redux starter with redux-sagas and a fake api (powered by json-server) for playing and prototyping.
- Host: GitHub
- URL: https://github.com/tinavanschelt/redux-starter-with-api
- Owner: tinavanschelt
- Created: 2018-03-01T11:28:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-26T12:42:44.000Z (almost 7 years ago)
- Last Synced: 2025-08-08T10:45:35.976Z (10 months ago)
- Topics: javascript, json-server, react, redux, redux-saga, reselect, starter
- Language: JavaScript
- Homepage: https://redux-starter-with-api.herokuapp.com/
- Size: 263 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Super Simple React Starter
A simple React starter built for personal use. I generally use if for quick examples / prototyping.
* a lightweight webpack config
* styled-components
* eslint & hot reloading
* Heroku-ready deployment setup (thanks to https://github.com/alanbsmith/react-node-example)
## Setup
Install dependencies with
```
$ yarn
```
Fire up a development server on `http://localhost:8080/` with
```
$ yarn dev
```
## Production Build
To build your production assets and run the server, run
```
$ yarn start
```
## Linting
To run the linter once:
```
$ yarn lint
```
To run the watch task:
```
$ yarn lint:watch
```
The above uses eslint and eslint-watch.
## Deploying to Heroku
If you haven't already, install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
```
$ heroku login
$ heroku create -a name-of-your-app
$ git push heroku master
$ heroku open
```
Heroku will
* follow the `build` command in your `package.json`
* compile assets with `webpack.prod.config.js`
* run the Express web server in `server.js`
## Kudos
* https://github.com/alanbsmith/react-node-example
* https://github.com/react-boilerplate/react-boilerplate