map_plat
Tech
- MVP.css
- Leaflet
- leaflet.heat
- Vue.js
- Vue Cli 3
- Vue Test Utils
- ESLint
- Jest
- Chai
- Docker and Docker Compose
- Pandas
- gRPC Web
- Protocol Buffers
- Let's Encrypt
- certbot
- gziphandler
- pq
- PostgreSQL
Project setup
Database Setup
docker-compose up -d
Once running, connect via pgAdmin
username: docker
password: docker
port: 54321
Create a locations table in the gis database with latitude, longitude, and count columns
Import the initial dataset
copy locations from '/data/out.csv' DELIMITERS ',' CSV;
Certs
generate self signed certs and place in the root of the application
Testing
Currently, all server side tests rely on a local database running. This requirement should be updated in the future.
docker-compose up -d
go test ./...
Run the server
go get
go run main.go
Compiles and hot-reloads for development (from app directory)
yarn run serve
Compiles and minifies for production
yarn run build
Lints and fixes files
yarn run lint