Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmymcbride/cra-template-bushido-plus
Bushido template plus placeholder private route / auth set up.
https://github.com/jimmymcbride/cra-template-bushido-plus
Last synced: about 1 month ago
JSON representation
Bushido template plus placeholder private route / auth set up.
- Host: GitHub
- URL: https://github.com/jimmymcbride/cra-template-bushido-plus
- Owner: JimmyMcBride
- Created: 2019-12-26T20:48:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-18T21:58:15.000Z (almost 5 years ago)
- Last Synced: 2024-04-28T13:40:42.612Z (8 months ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to Jimmy's Custom Template, Bushido Plus!
## How To Install
### yarn
`yarn create react-app --template bushido-plus`
### npm
`npm init react-app --template bushido-plus`
### npx
`npx create-react-app --template bushido-plus`
### global
> If create-react-app is installed globally on your computer you can use this command:
`create-react -app --template bushido-plus`
## What makes it extra?
Bushido plus template comes with a placeholder private route / auth configuration.
Just like regular create-react-app but so much more. This template includes:
- axios
- bushido-strap
- node-sass
- react-redux
- react-router
- react-router-dom
- redux
- redux-logger
- redux-thunk
- serve
- styled-componentsThere is also a `serve` script that let's your run `serve -s build` and a `build-and-serve` script that runs `npm run build && npm run serve`.
Redux boilerplate is set up with combine reducers and has a simple counter reducer used in one of the routes that use's react-redux's beautiful hooks to access actions and state from reducer's.
Reducer and action folders are inside a store folder so they are in the same spot.
```
| src |
| --- | components
| --- | *store* |
| --- | ------- |actions*
| --- | --- | reducers*
| App.js
| index.js
```Routes are set in App.js and all components for routes are built in components folder.
## BUSHIDO_STRAP
WTF is bushido-strap? Well, friend, it is a personal style library of mine. It has a bunch of handy styled components I've slowly crafted over time. It's already set up in this project. [Check out the documentation here to see everything this modest style library has to offer!](https://www.npmjs.com/package/bushido-strap)