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

https://github.com/0plus1/create-react-app-starter

React - Router - Redux - AirBnB eslint
https://github.com/0plus1/create-react-app-starter

Last synced: 12 months ago
JSON representation

React - Router - Redux - AirBnB eslint

Awesome Lists containing this project

README

          

### Create React App Starter
A highly opinionated react starter using CRA.

This repository is a base template for your own application.

The idea is to have a basic stub of all the moving part of a react + redux application, so you can jump in straight away and start coding your own application.

### Install

```
TODO
```

### Rationale

Why prop-types and not typescript?
```
TODO
```

### Stubs
In this template you will find several pre-configured stubs:

#### react-router
* Router parameters
* prop-types validation

#### react-redux
* Example actions and reducers
* Complex exports with chained HOC

#### axios
* axios abstraction with interceptors for HTTP status codes

### Coding guidelines

#### Naming conventions
* Files containing JSX should be capitalised
* Folder names should be lowercase

#### Folder stucture
* _views_ contains all the router views
* _components_ contains all the components, big components should be placed in an individual folder with a index.js entry point.

#### Linting
Do not disable rules.

### Includes
* [Create React App](https://github.com/facebook/create-react-app)
* [React router](https://reacttraining.com/react-router/web/guides/quick-start)

#### Linters
* [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript)
* [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest)

#### Tests
* [Enzyme](https://airbnb.io/enzyme)

#### Extra
* [env-cmd](https://github.com/toddbluhm/env-cmd)
* [404 page by John Fink](https://gist.github.com/ilhamgusti/51c014c4691eb0284d43f597637756e0)
* [jsonplaceholder](https://jsonplaceholder.typicode.com/)