-
Install NodeJS in your machine
-
Install node modules
$ cd weather-app\ $ npm i
-
set up config.json.
- Set weather-stack-api-token in config.json after creating account on weatherstack.com
-
Project structure
-
Root
./
├──
public
template folder containing JS, CSS, HTML files├──
app.js
main node app file with all routes├──
forecast.js
file with function to perform api operations├──
package.json
package manager file├──
package-lock.json
package manager file├──
.gitignore
list of files and folders to be ignored in git├──
README.md
Instruction file├──
config.json
configuration file
-
-
Go to project (weather-app) directory in terminal and run the command
npm run start
// will run on localhost:3000