https://github.com/sergeysova/test-web-react
https://github.com/sergeysova/test-web-react
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sergeysova/test-web-react
- Owner: sergeysova
- Created: 2016-02-11T18:34:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-14T23:45:37.000Z (over 10 years ago)
- Last Synced: 2025-03-29T11:06:17.056Z (over 1 year ago)
- Language: CSS
- Size: 368 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Readme
## Install
> requires Node.js > 4.0.0
```bash
npm install
cp api/config.example.json api/config.json
```
## Build client
```bash
npm install
npm run build:production
# if you changed default api port
APIPORT=7001 npm run build:production
```
Build artifacts places in `/dist`
## Run server
```bash
npm install --production # install only server's packages
npm run server
# with port
APIPORT=7000 npm run server
```
Run server in [pm2](https://www.npmjs.com/package/pm2)
```bash
npm install --global pm2
npm start
# with port
APIPORT=7001 npm start
```
## Development
```bash
npm run watch # one command for client and server
# change ports
APIPORT=7000 npm run watch
npm run watch:client
npm run watch:server
npm run clean # clean directory after build
npm run build # build client in development env
```