Building a CRUD REST API with Nest js and Prisma

Поділитися
Вставка
  • Опубліковано 19 чер 2023
  • In this comprehensive tutorial, we will walk you through the process of building a CRUD REST API using Nest.js and Prisma. Nest.js is a powerful framework for building scalable and efficient server-side applications, while Prisma provides a modern and intuitive way to interact with databases.
    Throughout this tutorial, you will learn how to set up a Nest.js project, integrate Prisma as the ORM (Object-Relational Mapping) tool, and create RESTful endpoints for performing CRUD operations on your data. We will cover topics such as defining models, establishing database connections, implementing controllers and services, handling request validations, and much more.
    By the end of this tutorial, you will have a solid understanding of how to leverage Nest.js and Prisma to build robust and maintainable REST APIs. Whether you're a beginner or an experienced developer, this tutorial will equip you with the knowledge and skills needed to create high-quality backend applications with ease.
    Join us on this journey of mastering Nest.js and Prisma as we dive into the world of building powerful CRUD REST APIs. Get ready to level up your backend development skills and enhance your proficiency in building scalable web applications.
    github: github.com/lemoncode21/nestjs...
    #nestjs #prisma

КОМЕНТАРІ • 11

  • @temaelbouaazzaoui8709
    @temaelbouaazzaoui8709 11 місяців тому

    thank you so much !!

  • @crossowar3920
    @crossowar3920 Рік тому

    Greate video, thanks a lot!

  • @aline4735
    @aline4735 11 місяців тому +2

    this video save me, thanks

  • @user-zb8hr3ye2v
    @user-zb8hr3ye2v 3 місяці тому

    Very nice! About prisma +nesjs CRUD example.. thanks!

  • @nameless798
    @nameless798 10 місяців тому +1

    When i execute a a request I get an error TypeError: Cannot read properties of undefined (reading 'book')

    • @lemoncode21
      @lemoncode21  10 місяців тому +1

      before you run yarn dev, u must be generate,migrate, and deploy prisma.
      run :
      1. `yarn generate`
      2. `yarn migrate`
      3. `yarn deploy`
      The goal is to create a table from Prisma to NestJS. Check last update my repo in github

    • @ziadbelhadri7554
      @ziadbelhadri7554 5 місяців тому

      @@lemoncode21i get the same error since i wanted to implement an already existed table from my database how can we solve the "TypeError: Cannot read properties of undefined (reading 'book')" , appreciate you for the video btw

    • @master_of_none3
      @master_of_none3 3 місяці тому

      @@ziadbelhadri7554 i think you can use
      prisma db pull to get a table from existin database to your prisma schema

  • @andrewshaban2888
    @andrewshaban2888 6 місяців тому

    Why do you write your code so sloppily? You don't use spaces anywhere