mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
25 lines
486 B
Markdown
25 lines
486 B
Markdown
|
# Nexus Example With Prisma
|
||
|
|
||
|
This example shows how to use Nexus with [Prisma](https://prisma.io) without the [Prisma plugin for Nexus](https://nxs.li/plugins/prisma). This approach is lower-level and here for reference reasons. Generally, you would want to use the Prisma plugin.
|
||
|
|
||
|
### Try It
|
||
|
|
||
|
```
|
||
|
npm install
|
||
|
npx prisma generate
|
||
|
npx prisma migrate save --experimental
|
||
|
npx prisma migrate up --experimental
|
||
|
```
|
||
|
|
||
|
Terminal 1
|
||
|
|
||
|
```
|
||
|
npm run dev
|
||
|
```
|
||
|
|
||
|
Terminal 2
|
||
|
|
||
|
```
|
||
|
npm run dev:typecheck
|
||
|
```
|