🤖 Microservice to cache and expose community numbers. Beep boop.
Go to file
Matthias Kretschmann 08579d1a28
Merge pull request #1 from oceanprotocol/greenkeeper/node-fetch-2.6.0
Update node-fetch to the latest version 🚀
2019-05-16 10:52:46 +02:00
networks add twitter follower count 2019-05-14 20:59:15 +02:00
util initial commit 🐚 2019-05-14 20:52:48 +02:00
.editorconfig initial commit 🐚 2019-05-14 20:52:48 +02:00
.eslintrc initial commit 🐚 2019-05-14 20:52:48 +02:00
.gitignore initial commit 🐚 2019-05-14 20:52:48 +02:00
.nowignore initial commit 🐚 2019-05-14 20:52:48 +02:00
.travis.yml initial commit 🐚 2019-05-14 20:52:48 +02:00
LICENSE initial commit 🐚 2019-05-14 20:52:48 +02:00
README.md update example 2019-05-14 21:15:55 +02:00
index.js add twitter follower count 2019-05-14 20:59:15 +02:00
now.json initial commit 🐚 2019-05-14 20:52:48 +02:00
package.json fix(package): update node-fetch to version 2.6.0 2019-05-16 06:44:14 +00:00

README.md

banner

community-numbers

Microservice to cache and expose community numbers for use throughout oceanprotocol.com.

Build Status js oceanprotocol Greenkeeper badge

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