In this video, we will be making a #RestfulAPI using express and #Prisma #ORM for #javascript and #typescript. We would be doing all the basic CRUD operations on our database of choice (#postgresql, mysql, #sqlite or even #mongodb). For this video we will be using sqlite as the database. The application will be based on restful principles (GET, POST, PUT, PACTH, DELETE).
After watching this video you will have a basic idea of how to use Prisma ORM with ease.
0:00 Introduction
0:24 Express draft
3:06 Product-Category relationship
3:58 Install Prisma
5:00 setup prisma
8:48 Product Model
11:52 Category Model
12:34 One-Many Relationship
14:42 RestAPI routes
15:56 Prisma Studio (GUI for Database)
16:42 prisma migrate
19:45 prisma client init
20:44 GET all products
23:35 include relation in responses
26:58 POST create a product
32:46 GET a product by Id
35:55 DELETE a product by Id
38:11 PATCH a product by Id
43:01 Modifying Models and using prisma generate (adding more fields/columns)
46:42 Conclusion
--------------------------------------------------------------------------
📦FREE $100 credit @Digital Ocean: https://m.do.co/c/3208f08b3324
--------------------------------------------------------------------------
Subscribe: https://www.youtube.com/c/yourstruly2...
--------------------------------------------------------------------------
💵Support the channel:
Paypal: https://www.paypal.me/trulymittal
Patreon: / trulymittal
--------------------------------------------------------------------------
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! https://www.kite.com/get-kite/?utm_me...
--------------------------------------------------------------------------
Closed captions sponsored by Prisma.
Get yours for free here: https://pris.ly/closedcaptions
--------------------------------------------------------------------------
======================
✔ Other useful Playlists
======================
#RestAPI (#NodeJS and MongoDB): • REST API using NodeJS and MongoDB
#API Authentication using #JWT: • NodeJS API Authentication (JWT's)
#Firebase: • Firebase | Build a Notes App
Docker: • Docker
MongoDB: • Learn MongoDB in 50 minutes (Crash Co...
Html/Css/Js: • HTML / CSS / JS
Android: • Android
Challenges: • Challenges
#yoursTRULY #tutorial #howto #nodejs #android