https://github.com/nearhuscarl/react-boilerplate
react boilerplate from Andrew Mead's react course
https://github.com/nearhuscarl/react-boilerplate
Last synced: 8 months ago
JSON representation
react boilerplate from Andrew Mead's react course
- Host: GitHub
- URL: https://github.com/nearhuscarl/react-boilerplate
- Owner: NearHuscarl
- Created: 2018-08-17T10:01:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T06:59:34.000Z (over 6 years ago)
- Last Synced: 2025-01-04T03:10:36.567Z (9 months ago)
- Language: JavaScript
- Size: 327 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Boilerplate
React boilerplate is a front-end template to quickly prototype react applications
# Details
## Library and tool
- Front-end: react-redux
- Back-end: firebase
- Testing: jest and enzyme## Pages
- Login page
- Dashboard page
- 404/Not found page
- Loading page
- Confirm Modal# Setup
## Download
* Install [nodejs] and yarn (optional, you can just use npm)
```bash
$ npm install -g yarn
```* Open the terminal and type
```bash
$ git clone https://github.com/NearHuscarl/react-boilerplate
$ cd react-boilerplate
$ yarn install
```## Setup login systems
Follow [firebase instructions](https://firebase.google.com/docs/auth/?authuser=0) to add different login systems in your app
## Setup firebase
- Get your firebase environment variables after creating a firebase project
- Fill in the .env_development file for development database
- Fill in the .env_test file for seperate testing database if needed
- In the root folder, run `./setup_heroku.sh`
- Make sure git doesn't track those 2 files as they are your passwords to the database## Build
```bash
$ yarn run build:dev
$ yarn run dev-server
```## Test
```bash
$ yarn test
```## Deploy on heroku
- Install heroku CLI on your computer```bash
$ heroku login
$ cd
$ heroku create app-name
$ ./setup_heroku.sh # this is bash script, use git bash to run on window
$ git remote -v # confirm the remote is setup
$ git push heroku master
```[nodejs]: https://nodejs.org/en/download/