Skip to content

Commit 2c980b7

Browse files
Samuel Volchenboumclaude
authored andcommitted
Initial build: World of Where web app
SvelteKit web app rebuilt from the original macOS app bundle. Includes interactive SVG world map with all country geometry, geography quiz for countries/states per continent, and Docker deployment via GitHub Actions + Tailscale. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 parents  commit 2c980b7

19 files changed

Lines changed: 3082 additions & 0 deletions

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Connect to Tailscale
13+
uses: tailscale/github-action@v2
14+
with:
15+
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
16+
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
17+
tags: tag:ci
18+
19+
- name: Deploy to server
20+
run: |
21+
tailscale ssh ${{ secrets.LAKEHOUSE_USER }}@${{ secrets.LAKEHOUSE_HOST }} << 'EOF'
22+
set -e
23+
if [ ! -d /srv/docker/world ]; then
24+
sudo mkdir -p /srv/docker/world
25+
sudo chown $USER:$USER /srv/docker/world
26+
git clone https://github.com/${{ github.repository }}.git /srv/docker/world
27+
fi
28+
cd /srv/docker/world
29+
git fetch origin
30+
git reset --hard origin/main
31+
docker compose down
32+
docker compose build --no-cache
33+
docker compose up -d
34+
EOF

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.svelte-kit
2+
build
3+
node_modules
4+
.env
5+
.env.*
6+
!.env.example
7+
.DS_Store
8+
old/

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM node:20-alpine
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
RUN npm ci
7+
8+
COPY . .
9+
RUN npm run build
10+
11+
RUN npm prune --production
12+
13+
EXPOSE 3000
14+
15+
ENV NODE_ENV=production
16+
17+
CMD ["node", "build"]

docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
world:
3+
build: .
4+
ports:
5+
- "3004:3000"
6+
environment:
7+
- NODE_ENV=production
8+
restart: unless-stopped

0 commit comments

Comments
 (0)