A simple web application that shows the climate difference between two cities. If you're considering moving, this application will give you an idea of day-to-day weather differences between where you are now and your new city.
I originally started writing this many moons ago to learn Angular, but set it aside unfinished. Recently I decided to modernize it, and host it here for posterity, but there is still a lot of cleanup to do and features to add.
First, check out the project. Install the project's JS and PHP dependencies with
npm and composer:
git clone https://github.com/bobbylight/climatediff.git
cd climatediff
npm install
# On Windows, use Composer's installer; otherwise, just use curl
curl -sS https://getcomposer.org/installer | php
php composer.phar installThen, get a token to access the NCDC CDO web services. Create a new file named public/api/init.php from
public/api/init.php.orig with your token inserted appropriately. This is necessary for the application to fetch
historical data from the NOAA.
You can build the production version of it into dist/ by running npm run build.
- npm run clean - Delete the
dist/andcoverage/(for unit tests) folders - npm run build - Create a minified build in
dist/ - npm run dev - Runs a dev build, watches for and hotswaps changes
- npm run test - Run unit tests (nothing yet)
- npm run coverage - Run unit tests, generate coverage report (nothing yet)
- npm run make-aws-archive - Builds
aws-archive.zipfrom the current contents ofdist/
To deploy to AWS, as configured in .elasticbeanstalk/config.yml:
npm run make-aws-archive
eb deploy --label "label for new version"Icons were grabbed from: