This is a weather app using http://openweathermap.org/forecast5 API. App available at: ouezeur app
api response example when making a request with city qs: curl http://api.openweathermap.org/data/2.5/forecast\?q\=london\&APPID\=<YOUR_TOKEN> | prettyjson
npm run start
npm run dev
(opens on PORT
:3010)
API_KEY will store your API token in process.env
.
Deploy with now
using now -e API_KEY=<YOUR_API_KEY>
Make sure you encrypt <YOUR_API_KEY>`` before deploying:
now secret add api_key <YOUR_API_KEY>`
now
will automatically run install
, build
, start
when deploying which can be overriden by now-build
, now-start
scripts.
now alias <YOUR_MOST_RECENT_URL>
YOUR_ALIAS
- unit tests
- clearfix
- create a middleware to be injected in the route to make
app.js
more modular and easier to read - managing 404 error where API returns something anyway