Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alincode/api-server
https://github.com/alincode/api-server
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alincode/api-server
- Owner: alincode
- Created: 2016-11-04T05:46:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-09T02:40:41.000Z (almost 8 years ago)
- Last Synced: 2024-11-06T07:27:22.661Z (2 months ago)
- Language: HTML
- Size: 504 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# api-server
### change log
**2016/11/11**
`post /api/v1/parsers`
```
// old responses body{
success: true,
results: {}
}
``````
// new responses body{
success: true,
results: [{}]
}```
### common package
* [utility](https://www.npmjs.com/package/utility)
### set up bobel
```
npm i -D babel-core babel-polyfill babel-preset-es2015 babel-preset-stage-0 babel-loader
```[bobel await ](http://stackoverflow.com/questions/33527653/babel-6-regeneratorruntime-is-not-defined-with-async-await)
### deploy
```
pm2 deploy dev setup
pm2 deploy dev
pm2 deploy dev revert 1
pm2 deploy dev exec "pm2 restart all"
pm2 deploy production
```### install
* [Centos install mongo](https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-centos-7)
## test
[api server status](http://114.35.96.3/api/v2/scraper)
## troubleshoptt
**Question**
```
fatal: no upstream configured for branch 'master'
```**fix**
```
git branch --set-upstream-to=origin/master master
```### reference
* [base 64 encode](https://www.base64encode.org/)