tib-baseball-softball / skylarks-next

Experimental Website/Web App for the Berlin Skylarks Baseball & Softball Club
GNU Affero General Public License v3.0
0 stars 0 forks source link
baseball berlin progressive-web-app skylarks softball

Skylarks-Next

New experimental website/progressive web app for the website of the Berlin Skylarks Baseball & Softball Club. Built with SvelteKit, Skeleton UI and Tailwind CSS.

Concept / Background

As of now, different types of data are being processed in different backends:

Project goal

This project is intended as a pure frontend that collects data from various relevant sources and displays it in a user-friendly way. Since usage is expected to be predominantly mobile, focus is on providing a Progressive Web App with mobile-first design.

Project requirements

Local Development

  1. Clone the repository
git clone git@github.com:tib-baseball-softball/skylarks-fe-next.git
cd skylarks-fe-next
  1. Set up environment
cp .env.dist .env
  1. Get project dependencies
npm install`
# yarn/pnpm/bun could also work, untested
  1. Start the dev server (watches for file changes automatically)
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Default local port is http://localhost:5173/

Deployment

Fully automated via GitHub Actions, deploys on every push to branch main, excluding documentation files and folders.

Server Setup / Manual Deployment

What the GitHub Action does:

  1. npm ci && npm run build for production build output
  2. sets static environment variables
  3. copies build output to server via rsync
  4. App is served as Node.js application listening on a specific port
  5. Process is managed by PM2
  6. The Caddy Webserver is used as reverse proxy.

Bugs and Problems

Terms of use

Licensed under AGPL-3.


Explore other templates from The Good Docs Project. Use our feedback form to give feedback on this template.