This app allows you to check air quality level in your area.
- PHP 7.3 or higher
- Composer
- MySQL, PostgreSQL, SQLite or SQL Server database
Download repository from github:
git clone https://github.com/delyro/airapp.git
Install dependencies with composer:
composer install
Configure .env.example file (add your database credentials) and rename it to .env.
If you using MySQL 8 you have to change authentication method to mysql_native_password. Example:
ALTER USER 'yourname'@'localhost' IDENTIFIED WITH mysql_native_password BY 'yourpassword';
Do not forget to grant privileges to database.
Generate key:
php artisan key:generate
Run migration:
php artisan migrate
Populate database with cities and stations:
php artisan db:seed
Finally, run the application:
php artisan serve
The app will be available at localhost:8000