![]() If you don't, just update your Node before starting the next section. Prerequisitesīefore getting started, take the time to double-check if you have version 12.2 or higher of Node.js. If, in the future, you want to use Prisma with a PostgreSQL database, here is a tutorial on creating a PostgreSQL database using Docker-Compose. The project will run by itself if you follow the steps of this tutorial. This means that you don't need to configure a database on your computer. SQLite is a self-contained database engine. To keep this introduction accessible, we will use Node with SQLite. ![]() I will show you how to build your first Node.js database using Prisma. "Prisma helps app developers build faster and make fewer errors with an open source ORM for PostgreSQL, MySQL and SQLite." – Prisma homepage Let's build a simple Twitter database using Node, Prisma, and SQLite That is why I decided to try it and to replace my previous database management library: TypeORM. To summarize, Prisma is a modern ORM that plays nice with all the trending tech stacks. You will see how that works in the coming sections.Īlso, the ORM works well with Next.js, GraphQL, Nest.Js, Express.js, Apollo, and Hapi. The schema definition is easy to read by humans – no more headache there. Yes, this library will help you build and manage your Node.js database – and it's compatible with TypeScript! It will generate all the types of your entities automatically. It's a modern ORM (Object-Relational-Mapping tool) that works with Node.jsand TypeScript. ![]() Lately I've been seeing many tweets and articles about Prisma.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |