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

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

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