Go to file
2017-11-08 00:51:34 +00:00
gulp React and ES2016 done 2017-11-08 00:51:34 +00:00
server init 2017-10-27 21:26:27 +01:00
src React and ES2016 done 2017-11-08 00:51:34 +00:00
test init 2017-10-27 21:26:27 +01:00
.babelrc React and ES2016 done 2017-11-08 00:51:34 +00:00
.eslintrc.json init 2017-10-27 21:26:27 +01:00
.gitignore React and ES2016 done 2017-11-08 00:51:34 +00:00
gulpfile.js React and ES2016 done 2017-11-08 00:51:34 +00:00
old-gulpfile.js init 2017-10-27 21:26:27 +01:00
package-lock.json React and ES2016 done 2017-11-08 00:51:34 +00:00
package.json React and ES2016 done 2017-11-08 00:51:34 +00:00
Readme.md init 2017-10-27 21:26:27 +01:00
server.js init 2017-10-27 21:26:27 +01:00
webpack.config.js React and ES2016 done 2017-11-08 00:51:34 +00:00

Wipro OpenWeatherMap App

Intro

An application written in Javascript, utilising Backbone on the front end and Express on the back end.

The application is a single HTML page displaying the 5 day weather forecast for a location of my choice. In this case it is Glasgow City.

A live version of the application can be viewed at: http://wiprotest-dev.eu-west-1.elasticbeanstalk.com

Installation

To install this application, it should be cloned from the repo:


git clone https://github.com/martind2000/wiprotest.git

Once the code has been retrieved you have to install the node packages:


npm install
 

This will install and build the app.

How to use

Once the node packages have been installed the application is almost ready to run.

An OpenWeatherMap API key is required, if you do not already have one, then you can get one for free by going to this address: http://openweathermap.org/appid

Once an APPID key has been obtained the application can be run by using the following


openweatherAPI=<APPID> npm start

replace <APPID> with your appid, such as:


openweatherAPI=b1b15e88fa797225412429c1 npm start

Test

This application is currently tested using Mocha and Expect.js. The test is in the /test folder.

To run the test, run the following command.


npm test

Todo

  • Enhance the build process to merge the font and weather icon css, the Material UI css and the colour css into one file to reduce the number of server requests from 3 to 1.
  • Better testing. Currently the tests are simple for brevity, however I would like to implement Browser testing to ensure the view portion of the code is working as intended.