Skip to content

Commit

Permalink
content: update prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
luizchaves committed Oct 19, 2024
1 parent ea7cea6 commit ffb166d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/content/classnotes/expressjs/prismajs-simple/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ import CodeTree from '../../../../components/CodeTree.astro';
$ npm install prisma

$ npx prisma init --datasource-provider sqlite

✔ Your Prisma schema was created at prisma/schema.prisma
You can now open it in your favorite editor.

Next steps:
1. Set the DATABASE_URL in the .env file to point to your existing database. If your database has no tables yet, read https://pris.ly/d/getting-started
2. Run prisma db pull to turn your database schema into a Prisma schema.
3. Run prisma generate to generate the Prisma Client. You can then start querying your database.
4. Tip: Explore how you can extend the ORM with scalable connection pooling, global caching, and real-time database events. Read: https://pris.ly/cli/beyond-orm

More information in our documentation:
https://pris.ly/d/getting-started
```

<CodeTree src="/codes/expressjs/monitor-app-prismajs-simple" githubUrl={true} />
Expand Down

0 comments on commit ffb166d

Please sign in to comment.