- In this directory you can find the source code of my weather app. The structure of the project is the following:
- routes(expressJS & Node)
- routes.js(routes seperated from server code)
- web(static files)
- app.js(client side code)
- index.html
- server.js
- Install the packages by simply running the command
npm install
inside the directory from the comand line - (or), instal the following packages:
- express
- cors
- body-parser
- dotenv
- node-fetch
- dev, dependencies:
- nodemon
- note: "API key is not included in this project, to test you must create a .env file on the root directory and create the API_KEY variable with the api key from openweather"
- I have followed the udacity rubric sheet for this project. I have decided to make the fetch to openweather in the server side because I believe it's more secure, so I don't expose my api key to users. Unfortunatly node does not support the fetch api, so another extensions is needed, node-fetch. 😅