概要
コンピューターサイエンスとWeb開発を扱うインタラクティブなブログ 💡
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- +1
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルNot a Number
Interactive blog posts on computer science and web development, at nan.fyi.
Built with React Router (framework mode), MDX and Tailwind CSS, and deployed to Cloudflare Workers — the same stack as the nan repo.
pnpm install
pnpm dev
Layout
app/routes.tslists every route. Pages live underapp/routes/, each with aroute.tsx(meta + layout) and usually apage.mdx(the post).app/mdx-components.tsxmaps the components every MDX page can use.app/routes/api/holds the newsletter endpoints.workers/app.tsis the Worker entry;wrangler.jsonconfigures it.
See migration.md for how to add an article.
Secrets and bindings
The newsletter sign-up (/api/subscribe, /api/verify) needs one secret, LOOPS_API_KEY. For local development copy .dev.vars.example to .dev.vars and fill it in; in production set it with wrangler secret put LOOPS_API_KEY.
Confirmation tokens are stored in the SUBSCRIBE_TOKENS Workers KV namespace (see wrangler.json). Wrangler creates the namespace on the first deploy; local dev uses a local KV store.
Scripts
| Script | |
|---|---|
pnpm dev |
Dev server |
pnpm build |
Production build |
pnpm preview |
Build, then serve the built Worker locally |
pnpm deploy |
Deploy to Cloudflare (wrangler deploy) |
pnpm typecheck |
Generate types and run tsc |
pnpm test |
Vitest |
関連プロジェクトを探す
読み込み中…