Guntis Smaukstelis cb3e525fc2 Update js dependencies
2024-01-05 16:35:12 +02:00
2024-01-01 20:56:50 +02:00
2024-01-05 16:35:12 +02:00
2023-12-19 17:48:48 +02:00
2023-05-23 22:02:56 +03:00
2023-12-19 16:06:32 +02:00
2023-05-16 14:20:36 +03:00

Weather Tool

Tool for downloading historical and real-time data from 33 weather stations in Latvia. It aggregates and displays data for different time periods, cities, and weather parameters.

Setup

Rename .env-sample to .env and fill in credentials

Run

docker-compose up node --build
docker-compose up scala --build

Web

http://0.0.0.0:9090/

nginx proxy config

server {
    listen 80;
    server_name laikazinas.lsm.lv;

    location / {
        proxy_pass http://localhost:9090; # Forward requests to the Scala app
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

Local development

// 1st terminal
sbt run

// 2nd terminal
cd web/
npm run dev

Backend Tech:

  • scala: cats-effects, http4s, fs2, circe, scalatest
  • postgres

Frontend Tech:

  • SolidJS
  • Vite
S
Description
wep app for using meteo data
Readme 27 MiB
Languages
TypeScript 60.1%
Scala 33.3%
CSS 5.7%
HTML 0.4%
Dockerfile 0.4%
Other 0.1%