Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 0 additions & 100 deletions .cursor/rules/rules.mdc

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
go-version-file: 'go.mod'

- name: Cache Go modules
uses: actions/cache@v3
Expand All @@ -45,8 +45,8 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=5m
version: v1.64.8
args: --timeout=5m --out-format=colored-line-number

test:
name: Test
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
go-version-file: 'go.mod'

- name: Cache Go modules
uses: actions/cache@v3
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ tmp/
# Docker volumes
data/

# Node modules (if any frontend tooling is added)
# Frontend tooling
node_modules/
web/frontend/dist/*
# Keep the stub so `go build` works before `npm run build` has been run.
!web/frontend/dist/index.html

# Backup files
*.bak
Expand Down
35 changes: 35 additions & 0 deletions .zed/debug.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[
{
"label": "Backend (Go)",
"adapter": "Delve",
"request": "launch",
"mode": "debug",
"program": "./cmd/server",
"cwd": "$ZED_WORKTREE_ROOT",
"env": {
"PORT": "8080",
"DATABASE_PATH": "./golinks.db",
"BASE_URL": "http://localhost:8080",
"ENVIRONMENT": "development"
}
},
{
"label": "Frontend dev server (Vite)",
"adapter": "JavaScript",
"type": "node",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/web/frontend/node_modules/vite/bin/vite.js",
"cwd": "$ZED_WORKTREE_ROOT/web/frontend",
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"]
},
{
"label": "Frontend (Chrome)",
"adapter": "JavaScript",
"type": "chrome",
"request": "launch",
"url": "http://localhost:5173",
"webRoot": "$ZED_WORKTREE_ROOT/web/frontend",
"skipFiles": ["<node_internals>/**"]
}
]
58 changes: 58 additions & 0 deletions .zed/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[
{
"label": "Run backend (Go)",
"command": "go",
"args": ["run", "./cmd/server"],
"cwd": "$ZED_WORKTREE_ROOT",
"env": {
"PORT": "8080",
"DATABASE_PATH": "./golinks.db",
"BASE_URL": "http://localhost:8080",
"ENVIRONMENT": "development"
},
"use_new_terminal": false,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never"
},
{
"label": "Run frontend dev server (Vite)",
"command": "npm",
"args": ["run", "dev"],
"cwd": "$ZED_WORKTREE_ROOT/web/frontend",
"use_new_terminal": false,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never"
},
{
"label": "Run full stack (make dev)",
"command": "make",
"args": ["dev"],
"cwd": "$ZED_WORKTREE_ROOT",
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never"
},
{
"label": "Build frontend",
"command": "npm",
"args": ["run", "build"],
"cwd": "$ZED_WORKTREE_ROOT/web/frontend",
"use_new_terminal": false,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "on_success"
},
{
"label": "Build production binary",
"command": "make",
"args": ["build"],
"cwd": "$ZED_WORKTREE_ROOT",
"use_new_terminal": false,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "on_success"
}
]
Loading
Loading