/moving_map

Primary LanguageJavaScript

Moving Map

Backend Setup

Self-signed certificates

sudo apt install mkcert
mkcert -install
mkcert computercat localhost computercat.tyemirov.lan $(hostname -I | awk '{print $1}')

Add ~/.local/share/mkcert/rootCA.pem certificate to your browser. Move computercat+3*.pem certificates to images/nginx/certs/: mv computercat+3* images/nginx/certs/

Data sources

Taxes

  1. Quarterly Retail Sales Tax Data by County and City
  2. ZIP Codes by Area and District codes
  3. 2023 TIGER/Line® Shapefiles: ZIP Code Tabulation Areas

.env

To set up a .env file drop it in the top folder and put the following variables. Define your own values.

POSTGRES_PORT=5432
POSTGRES_DB=us_weather
POSTGRES_USER=pguser
POSTGRES_PASSWORD=mysecretpassword

SSL certificates

mkcert install

The mkcert install command will produce /home/tyemirov/.local/share/mkcert/rootCA.pem which needs to be added to the root CA of the browsers which will be accessing the site.

mkcert computercat localhost computercat.tyemirov.lan $(hostname -I | awk '{print $1}')

This command will produce a certificate to be added to the nginx configuration.