I built this Weather Application with React, TypeScript, Vite, MaterialUI, Jest and OpenWeather API.
First, clone this respository with git clone
.
Next, run npm install
to install all necessary packages and dependencies. Make sure you are using Node v18.18.0
or greater.
Sensitive variables such as API Keys and API Urls are stored in a separate environment (.env) file. Please copy this provided file into the project root directory, and then rename it as '.env' if needed.
Finally, start up the local development server by running npm run dev
.
Unit testing is implemented in this project using Jest
.
In order to run the provided tests for the different components/functions, simply run npm run test
or npm run test:watch
.
To run the TypeScript compiler to check for potential type errors, run tsc --watch
.