Coder Social home page Coder Social logo

bronthulke / vic-exposure-sites Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 701 KB

A little Vue project running on Azure Static Web Apps, to show the COVID-19 exposure sites on a map for Victoria. Very much a WIP and has lots of room for improvements if time permits.

Home Page: https://vic-exposure-sites.bronthulke.com.au/

JavaScript 2.63% HTML 3.81% Vue 25.06% C# 51.54% Dockerfile 1.34% Shell 14.10% CSS 1.53%

vic-exposure-sites's Introduction

Victoria COVID-19 Public Exposure Sites Map

I wanted to see a blue duck, so I drew a blue duck.

(I wanted to see the sites near me, without trolling through a long list and looking for suburb names... so I built a map!)

This site is an Azure Static Web Apps site using Vue.js. It uses Azure Functions to communicate with a CosmosDB for caching geocode data.

If you want to fork and run it yourself, here are helpers:

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Compiles and minifies for production, and runs it locally using the Static Web Apps CLI

npm run servelocal

For more info about using this, see https://docs.microsoft.com/en-us/azure/static-web-apps/add-api?tabs=vue.

Local debugging

I found that when runnign with the Static Web Apps CLI, it was not giving me the abiltity to properly debug my code. So the workaround I used was to run the Azure Functions locally using the following command:

swa start . --api api 

and then running the Vue app using this command:

npm run serve

And just ensure that the API URLs are pointing at the site fired up by swa (e.g. http://192.168.1.178:4280/api/...)

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Coming Soon

  • removing old/expired sites drop off the map (currently it just adds any new sites, it never deletes ones that have been removed)

vic-exposure-sites's People

Contributors

bronthulke avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.