Closed ymc9 closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
zenstack-new-site | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 27, 2024 1:57pm |
The changes introduce a comprehensive guide for building a low-code backend solution for Refine.dev projects using Prisma and ZenStack. This guide covers setting up authentication, access control, automatic CRUD APIs, data providers, and demonstrates the implementation of a blogging application. Key additions include configuration for Auth.js, API request handlers, CRUD data providers, and access control mechanisms, along with modifications to Prisma and ZenStack schema files.
Files | Change Summary |
---|---|
blog/refine-dev-backend/index.md |
Added a tutorial on building a low-code backend solution for Refine.dev projects using Prisma and ZenStack. |
src/auth.ts |
Added configuration for Auth.js provider. |
src/app/api/auth/[...nextauth]/route.ts |
Added request handlers for authentication. |
src/providers/data-provider/index.ts |
Added CRUD data provider implementation. |
src/providers/access-control-provider/index.ts |
Added implementation for permission checks. |
prisma/schema.prisma |
Modified to include models for User, Post, Account, Session, VerificationToken. |
schema.zmodel |
Modified to include access control rules using @@allow directives for User and Post models. |
blog/refine-dev-backend/index.md (4)
Near line 14: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase. Context: ...) [Refine.dev](https://refine.dev/) is a very powerful and popular React-based framework for b... Rule ID: EN_WEAK_ADJECTIVE --- Near line 14: ‘many different kinds of’ might be wordy. Consider a shorter alternative. Context: ...is that it allows easy integration with many different kinds of backend systems via a flexible adapter ... Rule ID: EN_WORDINESS_PREMIUM_MANY_DIFFERENT_KINDS_OF --- Near line 36: Possible missing comma found. Context: ...tication and CRUD with essential access control and then expand to more advanced topics... Rule ID: AI_HYDRA_LEO_MISSING_COMMA --- Near line 373: This word is normally spelled with a hyphen. Context: ...d! We've also done it elegantly without hard coding any permission logic in the UI. Everyth... Rule ID: HARD_CODE_COMPOUND
blog/refine-dev-backend/index.md (6)
201: Expected: 0; Actual: 2 Unordered list indentation --- 202: Expected: 0; Actual: 2 Unordered list indentation --- 203: Expected: 0; Actual: 2 Unordered list indentation --- 379: Expected: 0 or 2; Actual: 1 Trailing spaces --- 10: null Multiple top-level headings in the same document --- 201: null Lists should be surrounded by blank lines
Summary by CodeRabbit
New Features
Documentation