1
0
mirror of https://github.com/oceanprotocol/community-numbers.git synced 2024-12-22 17:23:31 +01:00
🤖 Microservice to cache and expose community numbers. Beep boop.
Go to file
2020-03-28 14:51:58 +01:00
networks bump eslint-config-oceanprotocol 2019-08-20 11:35:30 +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
index.js fix response 2019-08-14 14:22:32 +02:00
LICENSE initial commit 🐚 2019-05-14 20:52:48 +02:00
now.json initial commit 🐚 2019-05-14 20:52:48 +02:00
package.json chore(package): update eslint-plugin-node to version 11.1.0 2020-03-28 11:52:04 +00:00
README.md return telegram numbers 2019-06-24 17:54:35 +02:00
utils.js consolidate utils 2019-06-06 20:26:32 +02:00

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
    },
    "telegram": {
        "community": 1000,
        "news": 1000
    }
}

Development

Install dependencies:

npm install -g now
npm install

And run the server in dev mode:

npm start

Test

Run the tests:

npm test

Deployment

Every branch is automatically deployed to Now with their GitHub integration. A link to a deployment will appear under each Pull Request.

The latest deployment of the master branch is automatically aliased to oceanprotocol-community.now.sh, configured as alias in now.json.

Manual Deployment

If needed, app can be deployed manually. 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

License

Copyright 2018 Ocean Protocol Foundation Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.