airqo-api

This repo contains API definitions for the AirQo platform

https://github.com/airqo-platform/airqo-api

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

hacktoberfest hacktoberfest2024

Keywords from Contributors

standardization autograd interpretation hack meshing interaction report projections sequences pde
Last synced: 10 months ago · JSON representation

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
hacktoberfest hacktoberfest2024
Created about 7 years ago · Last pushed 10 months ago
Metadata Files
Readme Contributing License Codeowners Security

README.md

AirQo-api

deploy-apis-to-production deploy-apis-to-staging run-tests

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

  1. Running locally with “Docker for Desktop” You will build and deploy microservices images to a single-node Kubernetes cluster running on your development machine.

  2. 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

At AirQo, we develop hardware and software tools to help deliver Clean Air for All African Cities

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 21,711
  • Total Committers: 37
  • Avg Commits per committer: 586.784
  • Development Distribution Score (DDS): 0.485
Past Year
  • Commits: 7,432
  • Committers: 10
  • Avg Commits per committer: 743.2
  • Development Distribution Score (DDS): 0.264
Top Committers
Name Email 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
ready for review (21) priority-medium (11) feature-request (7) priority-high (7) enhancement (6) bug (4) hotfix (4) events (3) k8s (3) priority-low (2) data-engineering (2) technical-debt (2) packages (1) modules (1) invalid (1) ml-ops (1) documentation (1) resolved (1) refactoring (1) work in progress (1) hardware (1) activities (1) chore (1)
Pull Request Labels
ready for review (3,407) work in progress (107) data-engineering (40) priority-high (28) auth-service (22) device-registry (21) priority-medium (17) hotfix (13) k8s (4) bug (4) documentation (4) predict (3) python (3) data-mgt (3) priority-low (3) incentives (2) On-Hold (2) refactoring (2) devops (2) chore (1) invalid (1) fault-detection (1) enhancement (1) mobile-app (1)

Dependencies

.github/workflows/codeql-analysis.yml actions
  • actions/checkout v3 composite
  • github/codeql-action/analyze v1 composite
  • github/codeql-action/autobuild v1 composite
  • github/codeql-action/init v1 composite
.github/workflows/deploy-apis-to-production.yml actions
  • 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
.github/workflows/deploy-apis-to-staging.yml actions
  • 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
.github/workflows/deploy-previews.yml actions
  • 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
.github/workflows/remove-deploy-previews.yml actions
  • ASzc/change-string-case-action v2 composite
  • actions/checkout v3 composite
  • google-github-actions/auth v0 composite
  • google-github-actions/setup-gcloud v0 composite
.github/workflows/test-changes.yml actions
  • actions/checkout v3 composite
  • actions/setup-java v3 composite
  • dorny/test-reporter v1.6.0 composite
k8s/schemas/Dockerfile docker
  • confluentinc/cp-schema-registry latest build