https://github.com/lianjiatech/newsboy
web platform to manage api, support mock service and api test
https://github.com/lianjiatech/newsboy
api api-documentation api-test-platform mock-server
Last synced: 11 months ago
JSON representation
web platform to manage api, support mock service and api test
- Host: GitHub
- URL: https://github.com/lianjiatech/newsboy
- Owner: LianjiaTech
- Created: 2020-09-24T07:17:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T09:38:25.000Z (over 5 years ago)
- Last Synced: 2025-04-26T11:38:08.276Z (about 1 year ago)
- Topics: api, api-documentation, api-test-platform, mock-server
- Language: JavaScript
- Homepage:
- Size: 1.36 MB
- Stars: 8
- Watchers: 22
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### ENV
- Node.js (7.6+)
- MongoDB (2.6+)
### Nginx in dev mode
Don't forget to enable websocket proxy if you use nginx when deploy this service
``` shell
location /
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
```
### install
```shell
git clone git@github.com:LianjiaTech/newsboy.git api-weapon
# custom config in ./config.json
cd api-weapon
# install dependencies
npm install
npm i cross-env nodemon webpack-cli -g
# init mongodb and admin account, also can be set in config.json
npm run install-server
# build client
npm run build-client
# start server,visit 127.0.0.1:{custom port in config.json }
node server/app.js
```
> init admin account
> email: prod@admin.com
> pass: adminPass