An API and single-page application through which users can fetch the current weather for a specific city.
- OpenWeather API
- axios
- Node.js
- React and ReactDOM
- Grab the repo:
git clone https://github.com/gbminarelli/weather-now.git
- Install dependencies:
cd weather-now/
npm install
Note: you can use any package manager that can consume package.json.
- Add API Key:
Create an api-key.txt file, place it inside of the server folder and copy and paste your own API Key (https://openweathermap.org/appid) inside of said text file. It should be a small string, no spaces or line breaks.
- Boot local server:
npm start
or:
node server/server.js
- Access web interface at
127.0.0.1:3000.
Gianlucci B. Minarelli gbminarelli
