You'll need zeit Now for the serverless NodeJS portion. Download the Now CLI via npm:
npm i -g now
now help // test this command worked
now login // login to the CLITo run this project, you'll need to grab an API key from OpenWeatherMaps. This uses the 'Current Weather' data API.
You'll need to create a .env file at the root of this directory. Add your api key to it:
open_weather_secret=API_KEY
For deployment, you'll need to add your api key to now as well. To do this:
now secret add open_weather_secret API_KEYFor local access at localhost:4000 run:
npm run startFor deployment, run:
now -e open_weather_secret=@open_weather_secretThe project will be deployed and reachable at the specified url in the console.
Axios, express, nodemon, zeit Now