This is a small project for a challenge test
- PHP 7.1+
- pdo_sqlite
- composer
- sqlite
composer test
Make sure that you have all the dependencies installed composer install
# Initing the database
php index.php app:init-db
# Generating dummy data, this data will be stored in storage/files/ folder
php index.php app:generate-data
# Importing data
php index.php app:import-data storage/database/weather.sqlite
# Retrieving statistics
php index.php app:statistics
# Retrieving observations
php index.php app:observations
# Start the container
docker-compose up -d
# Entering inside the container
docker container exec -it weather-app bash
# Initing the database
php index.php app:init-db
# Generating dummy data, this data will be stored in storage/files/ folder
php index.php app:generate-data
# Importing data
php index.php app:import-data storage/database/weather.sqlite
# Retrieving statistics
php index.php app:statistics
# Retrieving observations
php index.php app:observations
- [] Add tests for not reliable data