Simple Azure Static Web App to show today's closing time of Vinmonopolet.
- Install dependencies:
yarn
- Compile and hot-reload:
yarn serve
- Compile and minify for production:
yarn build
- Lint and fix files:
yarn lint
The Azure Functions backend requires Node.js ~14 and an Open API key from Vinmonopolet to fetch data.
- Install dependencies:
yarn
- Install Azure Static Web Apps CLI:
npm install -g @azure/static-web-apps-cli
- Install Functions Core Tools V3:
npm install -g azure-functions-core-tools@3
- Initialize Function app:
cd api && yarn && func init --worker-runtime node --language javascript && cd ..
- Add your API key in api/local.settings.json Values as
"VUE_APP_apikey": "REPLACE_ME"
- Compile frontend and run the Static Web Apps CLI
yarn build && swa start dist --api ./api