https://github.com/oceanprotocol/community-numbers
🤖 Microservice to cache and expose community numbers. Beep boop.
https://github.com/oceanprotocol/community-numbers
api bountiesnetwork gitcoin github json medium microservice now telegram twitter
Last synced: about 1 month ago
JSON representation
🤖 Microservice to cache and expose community numbers. Beep boop.
- Host: GitHub
- URL: https://github.com/oceanprotocol/community-numbers
- Owner: oceanprotocol
- License: mit
- Created: 2019-05-14T19:16:11.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T10:49:55.000Z (about 3 years ago)
- Last Synced: 2026-05-04T22:43:34.153Z (about 1 month ago)
- Topics: api, bountiesnetwork, gitcoin, github, json, medium, microservice, now, telegram, twitter
- Language: JavaScript
- Homepage: https://oceanprotocol.com/community
- Size: 534 KB
- Stars: 2
- Watchers: 10
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://oceanprotocol.com)
community-numbers
> Microservice to cache and expose community numbers for use throughout [oceanprotocol.com](https://oceanprotocol.com).
[](https://travis-ci.com/oceanprotocol/community-numbers)
[](https://github.com/oceanprotocol/eslint-config-oceanprotocol)

## API
Endpoint: [`https://oceanprotocol-community.now.sh`](https://oceanprotocol-community.now.sh)
### `GET /`
**200**: Returns a list of network numbers as follows:
```json
{
"github": {
"stars": 1000,
"repos": 1000
},
"medium": {
"followers": 1000
},
"bounties": {
"open": 1000,
"total": 1000
},
"twitter": {
"followers": 1000
},
"telegram": {
"community": 1000,
"news": 1000
},
"discord": {
"members": 1000
}
}
```
## Development
Install dependencies:
```bash
npm install -g vercel
npm install
```
And run the server in dev mode:
```bash
npm start
```
Then either open up `http://localhost:3000` in a browser or do in another Terminal:
```
curl http://localhost:3000
```
## Test
Run the tests:
```bash
npm test
```
## Deployment
Every branch is automatically deployed to [Vercel](https://vercel.com) with their GitHub integration. A link to a deployment will appear under each Pull Request.
The latest deployment of the `main` branch is automatically aliased to `oceanprotocol-community.now.sh`.
### Manual Deployment
If needed, app can be deployed manually. Make sure to switch to Ocean Protocol org before deploying:
```bash
# first run
vercel login
vercel switch
# deploy
vercel
# switch alias to new deployment
vercel alias
```
## License
```text
Copyright 2022 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.
```