To run a project locally, follow these steps:
-
Clone the repository
git clone https://github.com/nhankyjangchan/weather.js.git weatherjs
-
Go to the project directory
cd ./weatherjs -
Set up environment variables
- Rename the
.env.devfile to.env. - Open the
.envfile and specify your own API token obtained from OpenWeatherMap.
- Rename the
-
Install dependencies and run the project Run the following commands in sequence:
npm i npm run build npm run preview