https://github.com/glebpro/gleb-react-seed
In case I ever need to quickly start a webapp
https://github.com/glebpro/gleb-react-seed
react webapp
Last synced: about 1 month ago
JSON representation
In case I ever need to quickly start a webapp
- Host: GitHub
- URL: https://github.com/glebpro/gleb-react-seed
- Owner: glebpro
- Created: 2017-06-03T23:04:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-13T21:55:33.000Z (almost 9 years ago)
- Last Synced: 2025-02-23T05:26:56.098Z (over 1 year ago)
- Topics: react, webapp
- Language: CSS
- Size: 814 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gleb-react-seed
A react webapp seed in case I ever need one.
Includes React static frontend and node/express backend server if needed.
## Setup
```
$ git clone this that/
$ npm install
```
## Run frontend
```
$ npm run front
```
Visit `http://localhost:3000/`
Server is visible from the local network as well.
## Run backend
```
$ npm run back
```
Visit `http://localhost:3001/`
## Run both
```
$ npm run both
```
## Build (production)
Build will be placed in the `build` folder.
### TODO: this will only build frontend
```
$ npm run build
```
## Running frontend in preview production mode
This command will start webpack dev server, but with `NODE_ENV` set to `production`.
Everything will be minified and served.
Hot reload will not work, so you need to refresh the page manually after changing the code.
```
npm run preview
```
## Icons
Use [realfavicongenerator](http://realfavicongenerator.net/)
## Deploy
Run a build a deploy it to s3 bucket, create a `.aws.json` from `aws-example.json`
```
gulp deploy
```
Based off [Marvin Boilerplate](https://github.com/workco/marvin)