mirror of
https://github.com/oceanprotocol/community-numbers.git
synced 2024-11-25 03:20:17 +01:00
🤖 Microservice to cache and expose community numbers. Beep boop.
|
||
---|---|---|
networks | ||
util | ||
.editorconfig | ||
.eslintrc | ||
.gitignore | ||
.nowignore | ||
.travis.yml | ||
index.js | ||
LICENSE | ||
now.json | ||
package.json | ||
README.md |
community-numbers
Microservice to cache and expose community numbers for use throughout oceanprotocol.com.
API
Endpoint: https://oceanprotocol-community.now.sh
GET /
200: Returns a list of network numbers as follows:
{
"github": {
"stars": 1000,
"repos": 1000
},
"medium": {
"followers": 1000
},
"bounties": {
"gitcoin": 1000,
"bountiesNetwork": 1000,
"total": 1000
},
"twitter": {
"followers": 1000
}
}
Development
Install dependencies:
npm install
And run the server:
npm start
Test
Run the tests:
npm test
Deployment
Deploy to now, make sure to switch to Ocean Protocol org before deploying:
# first run
now login
now switch
# deploy
now
# switch alias to new deployment
now alias
Authors
- Matthias Kretschmann (@kremalicious) - Ocean Protocol