Skip to content

AirZenith/main

Repository files navigation

Welcome to AirZenith main repository!

What is AirZenith?

AirZenith is an air quality monitoring application that aims to provide information about air quality index and greenhouse gas emissions, as well as promote a healthy lifestyle to users by giving them prizes every time they complete the available challenges.

This app was made in Codeigniter 4 framework. The user guide corresponding to the latest version of the framework can be found here.

Installation & updates

click the green code button on the top right and download it the way you want. After that, you can run composer update to install the vendor folders

Setup

  1. Copy env to .env and tailor for your app, specifically the baseURL and any database settings.
  2. Run these code in your terminal
    php spark db:create user
    php spark migrate
    
  3. Create a WAQI api key from aqicn.org and replace the value YOUR_API_KEY on WAQI_TOKEN variable in .env file with your api key.
  4. Create a WeatherAPI api key from WeatherAPI.com and replace the value YOUR_API_KEY on WEATHER_TOKEN variable in .env file with your api key.

Server Requirements

PHP version 7.4 or higher is required, with the following extensions installed:

Additionally, make sure that the following extensions are enabled in your PHP:

  • json (enabled by default - don't turn it off)
  • mysqlnd if you plan to use MySQL
  • libcurl if you plan to use the HTTP\CURLRequest library