A basic exercise for beginners with React to understand hooks and functional components
- You must have node/npm installed
Follow this getting started guide:
Clone the repo
git clone [email protected]:stefan-cooper/weather-exercise.git
Change directory into newly cloned repo
cd weather-exercise
Install dependencies
npm install
Set up your env
touch .env
Edit your env to include the following env var:
REACT_APP_WEATHER_API_KEY=<your_api_key>
You can retrieve your weather api key from here: https://home.openweathermap.org/api_keys
You're good to go! Make use of the scripts below to run and test your app.
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.