Skip to content

Commit

Permalink
Improve prisma example (#2441)
Browse files Browse the repository at this point in the history
Co-authored-by: Bharat Kashyap <bharatkashyap@outlook.com>
  • Loading branch information
prakhargupta1 and bharatkashyap authored Aug 8, 2023
1 parent 47cbccc commit 5404ce0
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion examples/with-prisma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,34 @@

<p class="description">A basic Toolpad application that demonstrates how to integrate with prisma.</p>

{{"component": "modules/components/DocsImage.tsx", "src": "/static/toolpad/marketing/with-prisma.png", "alt": "Toolpad example with prisma", "caption": "Toolpad example with prisma" }}
<a target="_blank">
<img src="https://mui.com//static/toolpad/marketing/with-prisma.png" alt="Toolpad example app with Prisma ORM" style="aspect-ratio: 1.8" width="100%">
</a>

## How to run

Download the example [or clone the repo](https://github.com/mui/mui-toolpad):

<!-- #default-branch-switch -->

```bash
curl https://codeload.github.com/mui/mui-toolpad/tar.gz/master | tar -xz --strip=2 mui-toolpad-master/examples/with-prisma
cd with-prisma
```

Install it and run:

```bash
npm install
npm run dev
```

## What's inside

This app demonstrates the following capabilities of Toolpad:

1. Reusing your models in Toolpad UI
2. Using a Data Grid, Button and a text input component.
3. Using CRUD operations from [Prisma Client API](https://www.prisma.io/docs/concepts/components/prisma-client/crud)

[Check out the source code](https://github.com/mui/mui-toolpad/tree/master/examples/with-prisma)

0 comments on commit 5404ce0

Please sign in to comment.