Skip to content

Commit f71dbc4

Browse files
authored
Merge pull request #1 from LifeLex/feat/render-md-mdx
Feat/render md mdx
2 parents 01cca78 + 3afa9e9 commit f71dbc4

75 files changed

Lines changed: 9491 additions & 1314 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursor/rules/rules.mdc

Lines changed: 0 additions & 100 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Go
1919
uses: actions/setup-go@v4
2020
with:
21-
go-version: 'stable'
21+
go-version-file: 'go.mod'
2222

2323
- name: Cache Go modules
2424
uses: actions/cache@v3
@@ -45,8 +45,8 @@ jobs:
4545
- name: Run golangci-lint
4646
uses: golangci/golangci-lint-action@v3
4747
with:
48-
version: latest
49-
args: --timeout=5m
48+
version: v1.64.8
49+
args: --timeout=5m --out-format=colored-line-number
5050

5151
test:
5252
name: Test
@@ -60,7 +60,7 @@ jobs:
6060
- name: Set up Go
6161
uses: actions/setup-go@v4
6262
with:
63-
go-version: 'stable'
63+
go-version-file: 'go.mod'
6464

6565
- name: Cache Go modules
6666
uses: actions/cache@v3

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ tmp/
6161
# Docker volumes
6262
data/
6363

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

6770
# Backup files
6871
*.bak

.zed/debug.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[
2+
{
3+
"label": "Backend (Go)",
4+
"adapter": "Delve",
5+
"request": "launch",
6+
"mode": "debug",
7+
"program": "./cmd/server",
8+
"cwd": "$ZED_WORKTREE_ROOT",
9+
"env": {
10+
"PORT": "8080",
11+
"DATABASE_PATH": "./golinks.db",
12+
"BASE_URL": "http://localhost:8080",
13+
"ENVIRONMENT": "development"
14+
}
15+
},
16+
{
17+
"label": "Frontend dev server (Vite)",
18+
"adapter": "JavaScript",
19+
"type": "node",
20+
"request": "launch",
21+
"program": "$ZED_WORKTREE_ROOT/web/frontend/node_modules/vite/bin/vite.js",
22+
"cwd": "$ZED_WORKTREE_ROOT/web/frontend",
23+
"console": "integratedTerminal",
24+
"skipFiles": ["<node_internals>/**"]
25+
},
26+
{
27+
"label": "Frontend (Chrome)",
28+
"adapter": "JavaScript",
29+
"type": "chrome",
30+
"request": "launch",
31+
"url": "http://localhost:5173",
32+
"webRoot": "$ZED_WORKTREE_ROOT/web/frontend",
33+
"skipFiles": ["<node_internals>/**"]
34+
}
35+
]

.zed/tasks.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[
2+
{
3+
"label": "Run backend (Go)",
4+
"command": "go",
5+
"args": ["run", "./cmd/server"],
6+
"cwd": "$ZED_WORKTREE_ROOT",
7+
"env": {
8+
"PORT": "8080",
9+
"DATABASE_PATH": "./golinks.db",
10+
"BASE_URL": "http://localhost:8080",
11+
"ENVIRONMENT": "development"
12+
},
13+
"use_new_terminal": false,
14+
"allow_concurrent_runs": false,
15+
"reveal": "always",
16+
"hide": "never"
17+
},
18+
{
19+
"label": "Run frontend dev server (Vite)",
20+
"command": "npm",
21+
"args": ["run", "dev"],
22+
"cwd": "$ZED_WORKTREE_ROOT/web/frontend",
23+
"use_new_terminal": false,
24+
"allow_concurrent_runs": false,
25+
"reveal": "always",
26+
"hide": "never"
27+
},
28+
{
29+
"label": "Run full stack (make dev)",
30+
"command": "make",
31+
"args": ["dev"],
32+
"cwd": "$ZED_WORKTREE_ROOT",
33+
"use_new_terminal": true,
34+
"allow_concurrent_runs": false,
35+
"reveal": "always",
36+
"hide": "never"
37+
},
38+
{
39+
"label": "Build frontend",
40+
"command": "npm",
41+
"args": ["run", "build"],
42+
"cwd": "$ZED_WORKTREE_ROOT/web/frontend",
43+
"use_new_terminal": false,
44+
"allow_concurrent_runs": false,
45+
"reveal": "always",
46+
"hide": "on_success"
47+
},
48+
{
49+
"label": "Build production binary",
50+
"command": "make",
51+
"args": ["build"],
52+
"cwd": "$ZED_WORKTREE_ROOT",
53+
"use_new_terminal": false,
54+
"allow_concurrent_runs": false,
55+
"reveal": "always",
56+
"hide": "on_success"
57+
}
58+
]

0 commit comments

Comments
 (0)