This project is the result for the Exam in Webengineering from DHBW
For this project to work you need a valid API Key from weatherapi.com. Create a free account and copy your API key.
Node.js 14.9
Clone this repository:
git clone https://github.com/SlashBack626/dhbw-webengineering-svelte
Navigate to the root folder of this project:
cd dhbw-webengineering-svelte
install dependencies:
npm i
setup Environment Variables:
Variable | Value | Default | Required |
---|---|---|---|
PORT | <Your preferred PORT> | 5000 | :x: |
WEATHER_API | <Your API key from weatherapi.com> | None | :heavy_check_mark: |
in Windows Powershell you would write it like this:
$env:PORT=<PORT>
$env:WEATHER_API=<API KEY>
Alternatively you can edit the rollup.config.js
file and edit line 25
run npm run dev
and skip step 5
NOTE: this approach requires nodemon
to be installed
npm start
open browser: localhost:<PORT>
e.g. http://localhost:5000
A live version can be found at https://svelte-dhbw-webengineering.herokuapp.com/