You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-14Lines changed: 8 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,11 +67,14 @@ See [example/custom](example/custom/) for a working custom processor with tests.
67
67
68
68
## Standalone server
69
69
70
-
A ready-to-run Redis-backed server is included:
70
+
SQLite by default (zero infra). Redis is optional for multi-instance setups:
71
71
72
72
```bash
73
-
docker compose up -d
74
73
go run ./cmd/deeplink
74
+
75
+
# Redis:
76
+
docker compose up -d
77
+
DEEPLINK_STORE=redis go run ./cmd/deeplink
75
78
```
76
79
77
80
## Stores
@@ -205,24 +208,15 @@ are omitted, so scrapers never see `content=""`.
205
208
Pages also emit `robots: noindex,follow` so short links don't compete with
206
209
the destination URL in search.
207
210
208
-
## Dashboard
209
-
210
-
A React + TypeScript dashboard lives in [`web/`](web/), configured by
211
-
`VITE_API_URL` (see [`.env.example`](.env.example)).
212
-
213
-
```bash
214
-
cd web && npm install && npm run dev # http://localhost:5173
215
-
```
211
+
## Dashboard / site UI
216
212
217
-
It reads the API key from `localStorage` (`deeplink.apiKey`) and sends it as
218
-
`X-API-Key`, so set `DEEPLINK_API_KEY` to enforce auth. For a cross-origin
219
-
deploy, add the origin to `DEEPLINK_ALLOWED_ORIGINS`.
213
+
The React landing page and demo dashboard live on the [`web`](https://github.com/yinebebt/deeplink/tree/web) branch (not in `main`). Build and deploy that SPA separately against this API. Set `DEEPLINK_ALLOWED_ORIGINS` (and `DEEPLINK_API_KEY` for mutating routes) when the UI is cross-origin.
220
214
221
215
## Development
222
216
223
217
```bash
224
218
go test ./... # run tests
225
-
go run ./cmd/deeplink #run standalone server (needs Redis)
219
+
go run ./cmd/deeplink # standalone server (SQLite by default)
0 commit comments