airqo-api
This repo contains API definitions for the AirQo platform
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 37 committers (2.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.4%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
This repo contains API definitions for the AirQo platform
Basic Info
- Host: GitHub
- Owner: airqo-platform
- License: mit
- Language: JavaScript
- Default Branch: staging
- Homepage: https://airqo.africa/
- Size: 111 MB
Statistics
- Stars: 26
- Watchers: 4
- Forks: 24
- Open Issues: 129
- Releases: 0
Topics
Metadata Files
README.md
AirQo-api
What is AirQo??
The AirQo project aims to measure and quantify the scale of air pollution in and around African cities through the design, development and deployment of a network of low-cost air quality sensing devices mounted on either static or mobile objects.
System Architecture.
AirQo platform is composed of many microservices written in different languages that talk to each other using Istio.
The AirQo system architecture uses a mono repo for faster shipping. Each service has its own database. Consistency across these databases is maintained using an event driven approach. There is also an API gateway (Nginx) which clients use to access ther rest of the services. The state of the miscroservices is monitored using PM2. Deployment pattern is one service per container using Docker.
Folder Organisation
.
├── LICENSE
├── README.md
├── codecov.yml
├── contributing.md
├── docs
│ ├── img
│ └── system-architecture.md
├── infra
│ ├── ansible
│ └── terraform
├── k8s
│ ├── access-control
│ ├── analytics
│ ├── argo-cd
│ ├── auth-service
│ ├── calibrate
│ ├── cilium
│ ├── data-mgt
│ ├── device-monitor
│ ├── device-registry
│ ├── device-status
│ ├── device-uptime
│ ├── exceedance
│ ├── gp-model
│ ├── grafana
│ ├── incentives
│ ├── insights
│ ├── jenkins
│ ├── kafka
│ ├── locate
│ ├── meta-data
│ ├── mlflow
│ ├── namespaces
│ ├── new-relic
│ ├── nginx
│ ├── nodes
│ ├── predict
│ ├── redis
│ ├── spatial
│ ├── streams
│ ├── view
│ ├── website
│ └── workflows
└── src
├── analytics
├── auth-service
├── blog-content-manager
├── calibrate
├── data-mgt
├── data-proxy
├── device-monitoring
├── device-registry
├── device-status
├── device-uptime
├── exceedances
├── firebase
├── gp-model
├── incentives
├── insights
├── kafka-connectors
├── locate
├── meta-data
├── predict
├── spatial
├── view
├── website
└── workflows
Features
- Multi-protocol connectivity (HTTP and MQTT)
- Device management
- Access control
- Incentives
- Message persistence (MongoDB and PostgresSQL)
- Container-based deployment using Docker and Kubernetes
- Microservices architecture, high-quality code and test coverage
Installation and Usage
Running locally with “Docker for Desktop” You will build and deploy microservices images to a single-node Kubernetes cluster running on your development machine.
Running on Google Compute Engine (GCE)” You will build, upload and deploy the container images to a Kubernetes cluster on Google Cloud Engine.
Deployment
To deploy on the AirQo platform cd AirQo-api/src/microservice-name
Build the image docker build -t eu.gcr.io/gcp-project-name/microservice-name .
Run the container based on newly created image docker run -d -n best -p host-port:container-port eu.gcr.io/gcp-project-name/microservice-name
The flags for running the container
- p (publish) Asks Docker to forward traffic incoming on the host’s port host-port to the container’s port container-port. Containers have their own private set of ports, so if you want to reach one from the network, you have to forward traffic to it in this way. Otherwise, firewall rules will prevent all network traffic from reaching your container, as a default security posture.
- d (detach) asks Docker to run this container in the background.
- n (name) name you can use to specify the newly created container in subsequent commands. Above examples has the name as best.
Visit the application in REST client or Web browser localhost:host-port. You should the application up and running. Now would be the time to run unit tests, for example:
delete container after successful unit tests docker rm --force best.
Share images on DockerHub or Google Container Registry
docker push
- Example: docker push eu.gcr.io/airqo-api/airqo-device-registry-api
Contributing
We invite you to help us build this platform. Please look up the contributing guide for details.
Issues
Before reporting a problem, please check out the issue guide.
Owner
- Name: AirQo Platform
- Login: airqo-platform
- Kind: organization
- Email: data@airqo.net
- Location: Kampala, Uganda
- Website: http://www.airqo.net
- Twitter: AirQoProject
- Repositories: 3
- Profile: https://github.com/airqo-platform
At AirQo, we develop hardware and software tools to help deliver Clean Air for All African Cities
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| github-actions[bot] | 4****] | 11,176 |
| baalmart | b****t@g****m | 4,124 |
| Mike Mwanje | m****7@g****m | 784 |
| GitHub Actions | a****s@g****m | 759 |
| NicholasTurner23 | m****e@g****m | 756 |
| Noah Nsimbe | 3****e | 701 |
| Noah Nsimbe | n****h@g****m | 523 |
| Mutabazi Noble | 6****9 | 505 |
| danielogen | d****n@g****m | 437 |
| Priscilla-AL | p****a@a****t | 427 |
| Benjamin Ssempala | 8****a | 372 |
| ja-odur | o****8@g****m | 267 |
| lilly-muyama | m****n@g****m | 180 |
| wabinyai | r****o@g****m | 173 |
| Kyazike Samantha Gloria | g****e@g****m | 121 |
| Sserunjogi Richard | s****h@g****m | 82 |
| Ochieng Paul | o****2@g****m | 81 |
| AnthonyByansi | b****y@g****m | 55 |
| Kisakye-e | e****e@g****m | 38 |
| fajemila | f****d@g****m | 26 |
| MartinKalema | k****a@g****m | 23 |
| balmart | b****t@b****l | 22 |
| Usman Abdulganiy Babatunde | a****n@a****m | 22 |
| dependabot[bot] | 4****] | 11 |
| paul | o****l@y****m | 11 |
| bobturneruk | r****r@s****k | 10 |
| Abdul-Ganiy Usman | 3****5 | 5 |
| kasasa22 | k****5@g****m | 4 |
| petermark23 | m****s@g****m | 4 |
| A7med7x7 | a****7@g****m | 3 |
| and 7 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 199
- Total pull requests: 4,160
- Average time to close issues: over 2 years
- Average time to close pull requests: 2 days
- Total issue authors: 10
- Total pull request authors: 22
- Average comments per issue: 0.33
- Average comments per pull request: 1.82
- Merged pull requests: 3,738
- Bot issues: 107
- Bot pull requests: 0
Past Year
- Issues: 126
- Pull requests: 2,720
- Average time to close issues: 40 minutes
- Average time to close pull requests: about 14 hours
- Issue authors: 5
- Pull request authors: 10
- Average comments per issue: 0.25
- Average comments per pull request: 1.93
- Merged pull requests: 2,442
- Bot issues: 107
- Bot pull requests: 0
Top Authors
Issue Authors
- coderabbitai[bot] (107)
- Baalmart (75)
- NicholasTurner23 (5)
- sserurich (4)
- noahnsimbe (2)
- ja-odur (2)
- OchiengPaul442 (1)
- Codebmk (1)
- BenjaminSsempala (1)
- Psalmz777 (1)
Pull Request Authors
- Baalmart (3,148)
- NicholasTurner23 (464)
- BenjaminSsempala (192)
- wabinyai (103)
- Mnoble-19 (74)
- Psalmz777 (64)
- OchiengPaul442 (48)
- MartinKalema (22)
- AnthonyByansi (15)
- kasasa22 (6)
- karam-ellhaj (5)
- 123MwanjeMike (3)
- pronapro (3)
- A7med7x7 (2)
- sserurich (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- github/codeql-action/analyze v1 composite
- github/codeql-action/autobuild v1 composite
- github/codeql-action/init v1 composite
- Wandalen/wretry.action master composite
- actions/checkout v3 composite
- azure/k8s-set-context v2 composite
- docker/build-push-action v3 composite
- docker/login-action v2 composite
- docker/setup-buildx-action v1 composite
- docker/setup-qemu-action v1 composite
- fjogeleit/yaml-update-action main composite
- google-github-actions/auth v0 composite
- google-github-actions/setup-gcloud v0 composite
- Wandalen/wretry.action master composite
- actions/checkout v3 composite
- azure/k8s-set-context v2 composite
- docker/build-push-action v3 composite
- docker/login-action v2 composite
- docker/setup-buildx-action v1 composite
- docker/setup-qemu-action v1 composite
- fjogeleit/yaml-update-action main composite
- google-github-actions/auth v0 composite
- google-github-actions/setup-gcloud v0 composite
- ASzc/change-string-case-action v2 composite
- actions/checkout v3 composite
- actions/github-script v6 composite
- docker/login-action v2 composite
- google-github-actions/auth v0 composite
- google-github-actions/setup-gcloud v0 composite
- ASzc/change-string-case-action v2 composite
- actions/checkout v3 composite
- google-github-actions/auth v0 composite
- google-github-actions/setup-gcloud v0 composite
- actions/checkout v3 composite
- actions/setup-java v3 composite
- dorny/test-reporter v1.6.0 composite
- confluentinc/cp-schema-registry latest build