Remix-Breeze provides the perfect starting point and developer tools to ship your Remix applications like a breeze. Remix-Breeze provides the implementation for your application's login, registration, email verification, password reset, HTML email templates, CLI for CRUD scaffolding, and more.
Remix-Breeze is designed using Remix, Typescript, Tailwind CSS and offers a simple routing convention and a powerfull CLI for CRUD scaffolding.
Here are the features you get out the the box when you start a new Remix-Breeze application:
Here is an example of the CRUD scaffolding CLI. Just run this single command and get a fully functional functionality to create, read, update and delete posts:
npm run breeze g-crud -r posts -m "title:string content:text isPublished:boolean"
By running this command, Remix-Breeze will automatically do the followings.
Create the following routes in the app/breeze.routes.config.js
file:
/posts
/posts/create
/posts/:id
/posts/:id/edit
/posts/:id/delete
Create the followings files in the pages directory, with a basic UI and forms to list, edit, create, delete posts.
posts/index.tsx
posts/create.tsx
posts/show.tsx
posts/edit.tsx
posts/delete.ts
Add the Post
Prisma model to the prisma/schema.prisma
file, with the specified fields and types:
model Post {
id String @id @default(cuid())
title String
content String
isPublished Boolean
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
The only thing you have to do at this point is regenerate the prisma client and migration if necessary, restart your server and visit /posts
routes to start ceating, editing, deleting posts.