https://github.com/mon4ik/express-react-app
https://github.com/mon4ik/express-react-app
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mon4ik/express-react-app
- Owner: Mon4ik
- License: mit
- Created: 2022-06-09T10:45:21.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-09T10:45:24.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T22:46:53.133Z (4 months ago)
- Language: JavaScript
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`