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

https://github.com/mon4ik/express-react-app


https://github.com/mon4ik/express-react-app

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Express-react
React App on Express Back-end
## How to setup
1. Clone
```sh
git clone https://github.com/Mon4ik/express-react-app.git
```
2. Install packages
```sh
cd express-react
npm i
npm i -D
```
3. Build
- Development (With watching files):
```sh
npm run build:dev
```
- Production:
```sh
npm run build:prod
```
4. Start
- Development (With watching files):
```sh
npm run start:dev
```
- Production:
```sh
npm run start:prod
```
## How to edit
### Common
- React files are in `/src`
- Public files are in `/public`
- Routes are in `/routes`
- Webpack bundles are in `/webpack`
### Template
HTML template is in `/views/react.ejs`