DEV Community

Cover image for Create API and database connection using Nodejs and Prisma | Video
Marcos RJJunior
Marcos RJJunior

Posted on • Edited on

1 1

Create API and database connection using Nodejs and Prisma | Video

This is the first tutorial of the serie starting with node.

In today’s video, we implement a Nodejs environment using typescript. A basic structure that you can also use for any other project.

To manage SQL queries we are using Prisma ORM. The library also generates migration and schema types for the codebase.

The same structure will be used in the next video, where we are going to implement the user authentication and protect the routes.

In this demo application, you will create a simple Note model, we also create API routes to list all the items and create a new record.

Challenge for you to build the delete and update functions, let me know how it goes.

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay