https://github.com/thondery/iis-react-client
基于React制作的信息查询系统
https://github.com/thondery/iis-react-client
react webpack
Last synced: 2 months ago
JSON representation
基于React制作的信息查询系统
- Host: GitHub
- URL: https://github.com/thondery/iis-react-client
- Owner: thondery
- License: mit
- Created: 2017-08-10T01:50:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-16T06:10:50.000Z (almost 9 years ago)
- Last Synced: 2024-04-14T18:09:04.868Z (over 2 years ago)
- Topics: react, webpack
- Language: JavaScript
- Size: 563 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-iis-client
基于React制作的信息查询系统
## Installation
yarn 或 npm i
## Usages
开发调试
yarn dev:all 或 npm run dev
编译生产环境
1. 修改配置文件 `src/config/production.js`
```js
export default {
domain : 'http://192.168.1.214:7014',
apiPath : '/api/v1'
}
```
2. 运行编译
yarn build:all 或 npm run build:all
3. 将生成的文件上传至服务器,生成的目录为 `dist`
4. 服务器 `nginx` 配置
```
server
{
listen 80;
server_name xxx.com;
index index.html index.htm default.html default.htm;
root /path/to/iis-react-client;
location / {
try_files $uri /index.html;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
}
```