Giter VIP home page Giter VIP logo

air-quality's Introduction

Air Quality Checker

Live Demo A full-stack serverless application, with Vue.js, Express.js & MongoDB

This is a prototype-y project to quickly check air quality attributes (mainly aimed for users in China). Data sources are:

  • Baidu Maps (for GeoLocation data)
  • Hefeng Weather (for air quality & weather forecast)

Persistence & Caching is available (though not taken much thought into), but is disabled for production (live demo) due to data collection laws and such.

Configuration

Config is done mainly through environment variables:

Front-end Configs

  • VUE_APP_API_ROOT - Root URI of API Server

Note: Front-end config is injected at compile time

Back-end Configs

  • PORT - Which port to listen to (Local dev server configured to 8000)
  • BAIDU_AK - Baidu API access key
  • HEFENG_ID, HEFENG_KEY - Hefeng API access ID & key

Persistence

  • CACHING_ENABLED - Enable caching for API calls, true / false
  • PERSISTENCE_ENABLED - Enable persistence for API logs, true / false
  • MONGO_ENVIRONMENT - tcb / mongo

Mongo

  • MONGO_CONNECT - MongoDB connect URI
  • MONGO_DB - Which database to use inside mongo

TCB

  • MONGO_TCB_ID
  • MONGO_TCB_KEY
  • MONGO_TCB_ENV

Note: TCB support is now deprecated, due to TCB not supporting the full Mongo client.

air-quality's People

Contributors

chenseanxy avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sengeiou

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.