Skip to content
项目

filipebraida/adonisjs-starter-kit

在 GitHub 查看

关于

Starter kit for AdonisJS projects using a monorepo setup

网站与应用开发

这些数字如何统计

可以做什么

  • Auth: sign-up, password reset, Google sign-in, API tokens and admin impersonation.
  • RBAC with @adonis-agora/authz: typed capabilities, roles in code plus institutional roles built on a roles page, enforced by policies.
  • Audit trail with @filipebraida/adonis-auditing: who did what, when and from where, on an Activity page.
  • Durable jobs with @adonis-agora/durable: mails and notifications run as retryable workflows on Postgres, with dispatched steps and the realtime channel on Redis.

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

AdonisJS Starter Kit

Full-stack AdonisJS 7 + Inertia/React monorepo with auth, RBAC, audit trail, i18n, realtime notifications and durable jobs already wired.

CI License: MIT AdonisJS 7 React 19 Node >= 24

Demo of the starter kit

I use this kit to prototype projects with coding agents, and my students use it for their capstone projects. Clone it and auth, UI, i18n, RBAC, layouts, tests and CI already work, so you go straight to the interesting part. A piece you don't need comes off by deleting it, not by refactoring.

Features

  • Auth: sign-up, password reset, Google sign-in, API tokens and admin impersonation.
  • RBAC with @adonis-agora/authz: typed capabilities, roles in code plus institutional roles built on a roles page, enforced by policies.
  • Audit trail with @filipebraida/adonis-auditing: who did what, when and from where, on an Activity page.
  • Durable jobs with @adonis-agora/durable: mails and notifications run as retryable workflows on Postgres, with dispatched steps and the realtime channel on Redis.
  • Realtime notifications over SSE, with a bell and an unread badge.
  • i18n in English and Portuguese, with typed keys shared by the server and the frontend.
  • UI built on shadcn/ui and Tailwind 4, with four layout shells, modals and a dark mode.
  • Tests and CI: Japa specs on a real Postgres, coverage, and a lint ruleset that enforces the conventions.
  • Agent-ready: AGENTS.md and skills for Claude Code, OpenCode and Cursor.
  • Deploy to one server with Catapult and PM2.

Quick start

You need Node.js 24+, pnpm and Docker.

pnpm create adonisjs@latest -K="filipebraida/adonisjs-starter-kit"
cd <your-app>

cp apps/web/.env.example apps/web/.env
pnpm ace generate:key
pnpm infra:up            # Postgres, Mailpit, pgAdmin
pnpm ace migration:run
pnpm ace db:seed         # [email protected] / 123
pnpm dev                 # http://localhost:3333

Run pnpm test, pnpm typecheck and pnpm lint before you push. To deploy, run pnpm deploy:setup once per server, then pnpm deploy:ship (see deploy.ts).

Learn more

  • AGENTS.md covers the architecture, module rules, commands and conventions.
  • packages/skills holds a step-by-step guide for each task: CRUD, auth, mail, i18n, testing and more.

Credits

Inspired by shadcn/ui, Batosai's AdonisJS starter, shadcn Admin and the Laravel React Starter Kit. Thanks to Sayed Ahmed, Lupiac and Corentin Clichy. Contributions are welcome.

MIT

探索相关项目

加载中…