๐Ÿ“ฆ nrjdalal / better-next

๐Ÿ“„ registry.json ยท 83 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83{
  "$schema": "https://ui.shadcn.com/schema/registry.json",
  "name": "nrjdalal",
  "homepage": "https://nrjdalal.com",
  "items": [
    {
      "$schema": "https://ui.shadcn.com/schema/registry-item.json",
      "name": "app/api/auth",
      "type": "registry:file",
      "dependencies": [
        "better-auth",
        "drizzle-kit",
        "drizzle-orm",
        "next",
        "postgres"
      ],
      "files": [
        {
          "type": "registry:component",
          "target": "components/auth.tsx",
          "path": "src/components/auth.tsx"
        },
        {
          "type": "registry:file",
          "target": "~/.env.example-auth",
          "path": ".env.example-auth"
        },
        {
          "type": "registry:file",
          "target": "~/drizzle.config.ts",
          "path": "drizzle.config.ts"
        },
        {
          "type": "registry:file",
          "target": "app/api/auth/[...all]/route.ts",
          "path": "src/app/api/auth/[...all]/route.ts"
        },
        {
          "type": "registry:file",
          "target": "db/index.ts",
          "path": "src/db/index.ts"
        },
        {
          "type": "registry:file",
          "target": "db/schema/auth.ts",
          "path": "src/db/schema/auth.ts"
        },
        {
          "type": "registry:file",
          "target": "db/schema/index.ts",
          "path": "src/db/schema/index.ts"
        },
        {
          "type": "registry:file",
          "target": "middleware.ts",
          "path": "src/middleware.ts"
        },
        {
          "type": "registry:page",
          "target": "app/(auth)/access/page.tsx",
          "path": "src/app/(auth)/access/page.tsx"
        },
        {
          "type": "registry:page",
          "target": "app/(auth)/x/page.tsx",
          "path": "src/app/(auth)/x/page.tsx"
        },
        {
          "type": "registry:lib",
          "target": "lib/auth/client.ts",
          "path": "src/lib/auth/client.ts"
        },
        {
          "type": "registry:lib",
          "target": "lib/auth/index.ts",
          "path": "src/lib/auth/index.ts"
        }
      ],
      "docs": "1. Rename and edit .env.example-auth\n2. Run `npm --env-file=.env drizzle-kit push` to generate postgres tables\n3. Run `npm run dev` to start the server\n4. Visit http://localhost:3000/auth/access/page to test signin/signup\n5. Visit http://localhost:3000/auth/x/page to test protected route"
    }
  ]
}