Skip to content

A compilation of Croatia and Europe weather radar and satellite images

Notifications You must be signed in to change notification settings

jurakovic/meteo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteo

A compilation of Croatia and Europe weather radar and satellite images.

Available at https://jurakovic.github.io/meteo/.


Overview

Two main folders:

src

  • contains source files for site build
  • no particular framework is used, only vanilla HTML, CSS, and JavaScript

docs

  • contains build output
  • source for GitHub Pages publish

Commands

Run from src

docker run -d -p 8080:80 --name meteo -v "$(pwd)/src:/usr/share/nginx/html" nginx

Open http://localhost:8080

Minify JS and CSS

terser, clean-css-cli

docker run -it --rm --entrypoint sh -v "$(pwd):/meteo" node:22-alpine

# inside container
npm install terser -g
npm install clean-css-cli -g
cd meteo/src/_assets
terser js/main.js --compress --mangle -o js/main.min.js --format max_line_len=140
cleancss --format 'wrapAt:140' -o css/styles.min.css css/styles.css

Build

cd src
./build.sh

About

A compilation of Croatia and Europe weather radar and satellite images

Resources

Stars

Watchers

Forks