My first try at Vue.js with the OpenWeather API
-
Open terminal in the root of the project folder and type
npm install
oryarn install
(IF you've got yarn installed of course) -
Create an OpenWeather API key on openweathermap.org
-
Copy your API key and paste it into
src/env.example.js
according to its instructions -
Rename
env.example.js
toenv.js
-
That's it! All you need to do is run one of the below commands based on what you want to do.
yarn serve
or
npm run serve
yarn build
or
npm run build
yarn lint
or
npm run lint