diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 5e3086f..853d5b7 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -29,10 +29,10 @@ jobs: run: | docker save barabingo:latest | gzip > /tmp/barabingo.tar.gz - - name: Copy image to server + - name: Copy files to server run: | - scp /tmp/barabingo.tar.gz root@barabingo:/tmp/barabingo.tar.gz + scp /tmp/barabingo.tar.gz docker-compose.yml root@barabingo:/opt/barabingo/ - name: Deploy on server run: | - ssh root@barabingo 'cd /opt/barabingo && docker load < /tmp/barabingo.tar.gz && docker compose down --remove-orphans 2>/dev/null; docker compose up -d && rm -f /tmp/barabingo.tar.gz && docker image prune -f' + ssh root@barabingo 'cd /opt/barabingo && docker load < barabingo.tar.gz && docker compose down --remove-orphans 2>/dev/null; docker compose up -d && rm -f barabingo.tar.gz && docker image prune -f' diff --git a/README.md b/README.md index e215bc4..8f52185 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,49 @@ -This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). +# BaraBingo 🎮 -## Getting Started +Chaotic bingo for Barotrauma crews. Mark the madness as it happens. -First, run the development server: +## Features + +- **Bingo grid** — mark cells when chaos moments happen in-game +- **Sound effects** — each cell plays a unique sound (honk, alarm, explosion...) +- **Custom OGG uploads** — add your own sounds per cell +- **Emoji picker** — pick the perfect emoji for each bingo cell +- **Admin panel** — create campaigns, manage bingo items +- **Live updates** — see who marks what in real-time via polling +- **Crew activity log** — time-stamped feed of all marks +- **Submarine status panel** — hull, reactor, O₂ gauges that degrade with chaos +- **Bingo detection** — rows, columns, diagonals, with celebration modal +- **Chaos meter** — from "Sub stable" to "SUB DESTROYED" + +## Tech + +- **Next.js 16** (App Router + Turbopack) +- **SQLite** via better-sqlite3 + Drizzle ORM +- **Tailwind CSS v4** with dark submarine theme +- **Web Audio API** for synthesized sound effects +- **Radix UI** primitives +- **Docker** — multi-stage build, `output: "standalone"` + +## Development ```bash +npm install npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev ``` -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. +First user to register automatically gets admin rights. -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. +## Docker -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. +```bash +docker build -t barabingo . +docker run -d -p 80:3000 -v ./data:/app/data -v ./uploads:/app/public/uploads barabingo +``` -## Learn More +## CI/CD -To learn more about Next.js, take a look at the following resources: +Push to `main`/`master` → Gitea Actions builds image and deploys to `barabingo` (Tailscale). -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. +## License -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. +MIT