Project Outline

<aside> 💡 This project is a detailed guide on how to set up user authentication using cookies and JSON Web Tokens (JWT) in a Node.js application. It also explores the use of Prisma ORM with a PostgreSQL database. The project goes through the process of setting up a database, populating it with seeded data, and then creating routes and controllers for user authentication. The authentication process involves logging in, accessing user details, and logging out, all using JWT for session management and cookies for storing the JWT on the client side.

</aside>

Authentication with Cookies


Knowing Few Things before Getting Started.

What is an [ORM](https://www.wikiwand.com/en/Object–relational_mapping#:~:text=Object–relational mapping (,within the programming language.)

Object–relational mapping (ORMO/RM, and O/R mapping tool) in computer science is a programming technique for converting data between a relational database and the heap of an object-oriented programming language. This creates, in effect, a virtual object database that can be used from within the programming language.

Comparison with traditional data access techniques

Compared to traditional techniques of exchange between an object-oriented language and a relational database, ORM often reduces the amount of code that needs to be written.


Prisma ORM

Prisma ORM is an open-source next-generation ORM. It consists of the following parts:


Teck Stack