nutritwin.be website development
  • CSS 44.8%
  • Astro 41.1%
  • TypeScript 12.8%
  • JavaScript 1%
  • Shell 0.3%
Find a file
NutriTwin Web fcdc0dac3c
All checks were successful
Build and deploy / build (push) Successful in 25s
workflow omit dev
2026-06-11 10:53:51 +02:00
.forgejo/workflows workflow omit dev 2026-06-11 10:53:51 +02:00
nginx Initial NutriTwin website 2026-06-10 11:05:04 +02:00
public Initial NutriTwin website 2026-06-10 11:05:04 +02:00
scripts Initial NutriTwin website 2026-06-10 11:05:04 +02:00
src Update src/pages/index.astro 2026-06-11 10:34:43 +02:00
tests Initial NutriTwin website 2026-06-10 11:05:04 +02:00
.gitignore Initial NutriTwin website 2026-06-10 11:05:04 +02:00
astro.config.mjs Initial NutriTwin website 2026-06-10 11:05:04 +02:00
package-lock.json Initial NutriTwin website 2026-06-10 11:05:04 +02:00
package.json Initial NutriTwin website 2026-06-10 11:05:04 +02:00
playwright.config.ts Initial NutriTwin website 2026-06-10 11:05:04 +02:00
README.md Initial NutriTwin website 2026-06-10 11:05:04 +02:00

NutriTwin Website

Static Astro website for nutritwin.be.

Requirements

  • Node.js 22 or newer
  • npm
  • nginx for production serving

Install

npm ci

Local Development

npm run dev

The local development server runs on http://127.0.0.1:3090/.

Build

npm run build

The production output is generated in dist/.

Test

npm run test

The Playwright suite checks desktop/mobile smoke behavior and axe accessibility rules.

Production Serving

The nginx config in nginx/nutritwin.conf serves dist/ on port 3080 for:

  • nutritwin.be
  • www.nutritwin.be
  • localhost
  • 127.0.0.1

After a fresh checkout:

npm ci
npm run build
sudo cp nginx/nutritwin.conf /etc/nginx/sites-available/nutritwin
sudo ln -sfn /etc/nginx/sites-available/nutritwin /etc/nginx/sites-enabled/nutritwin
sudo nginx -t
sudo systemctl reload nginx

For normal updates on this VM:

./scripts/deploy-local.sh

Analytics

The page uses Umami Cloud:

  • website id: fb2a9290-bd89-4667-a7f2-a8e547b82f48
  • domains: nutritwin.be,www.nutritwin.be
  • performance metrics enabled

Notes

Keep confidential project proposals, presentations, and internal source material outside public/. Anything in public/ is copied to dist/ and served by nginx.