Auto Crud

First Steps

Guide for adding Auto Crud to an existing application.

Prerequisites

Installation steps for these prerequisites are detailed in the following sections.

Once installed, all you need to do is:

  1. Define your model schemas in /server/database/schema.ts.
  2. Run bun run db:generate.
  3. That's it! Your CRUD endpoints are ready:
   - POST /api/<resource> -> create
   - GET /api/<resource> -> list
   - GET /api/<resource>/:id -> read
   - PUT /api/<resource>/:id -> update
   - DELETE /api/<resource>/:id -> delete

The following sections explain how to install these prerequisites.