GraphQL API with Node.js, TypeScript, PostgreSQL
Learn to implement authentication,, authorization, CRUD, relationships, Cursor based pagination and a lot more in one of the most popular tech stack out there.
Development ,Database and Design Development,PostgreSQL
Lectures -6
Duration -2.5 hours
Lifetime Access
Lifetime Access
30-days Money-Back Guarantee
Get your team access to 10000+ top Tutorials Point courses anytime, anywhere.
Course Description
Create GraphQL API in Node.js & TypeScript. Every line of code will be striclty typed. No more "any" type intuitions and the flaws of JavaScript.
We will be using Node.js with Express, Nexus Schema for GraphQL, Prisma as an ORM for PostgreSQL, Redis and of course everything will be written in TypeScript, including the auto generated code.
Style
Hands on
We will be spending majority of the time in our very own VS-Code. But we will also be using Playground/Insomnia for testing our GraphQL API.
I recommend you code along. And try to watch it at 1.5x speed at least. It saves time.
Architecture
Users
Register User (Create a new User)
Login (Session based authentication with caching in redis)
Get Authenticated User (Get the currently authenticated user details => more like an api which tells our api consumers that they are authenticated or not => will be judged by the validity of the cookie passed in the requests => our backend will check the cookie's validity and spit out 401 error if the cookie is invalid/absent)
Logout
Get all Users
Posts
Create Posts (A user can create as many posts it wants => one to many relationship)
Their relationship with User (Each post will be associated to a single user as it's author/creator => many to one relationship)
Get all Posts
Pagination
Difference between Cursor and Offset based paginations.
Cursor based pagination implementation.
Tech Stack
Language & Frameworks
Node.js
Express
TypeScript
Libraries
PostgreSQL
@prisma/client
GraphQL
nexus (for code oriented GraphQL code base)
apollo-server-express
Authentication
express-session (for authentication => session based and cookies)
Redis Cache
ioredis
connect-redis (for storing sessions in redis,, for authentication)
Goals
Create GraphQL API with Nodejs, Express, TypeScript, PostgreSQL, Prisma, and Redis
Learn to implement authentication, authorization, CRUD, relationships, Cursor based pagination and a lot more in one of the most popular tech stacks out there.
Learn all those optimized practices like pagination (cursor), query complexity, caching etc.
Learn how to build a practical project, showcase your skills, and get a job. No more theoretical stuff with uncertain results.
Learn testing GraphQL APIs with insomnia and playground.
Prerequisites
- Basic understanding of the following (A database-backed todo list experience would suffice) -
- Node.js & Express
- TypeScript
- PostgreSQL
- GraphQL
Curriculum
Check out the detailed breakdown of what’s inside the course
Introduction & Setting up things
1 Lectures
- Intro 31:28 31:28
User Registration and Authentication, Posts and Pagination
5 Lectures
Instructor Details
Aman Bhardwaj
I am a passionate Full Stack Developer who likes to learn and code new technologies both professionally and as a hobby. Though at personal level I am a functional programming enthusiast but I am not at all language oriented and my channel has tutorial videos of Elixir, Golang, Node.js, React.js, TypeScript, Flutter and all that good stuff.
Talk is cheap, let me show you the code.
Course Certificate
Use your certificate to make a career change or to advance in your current career.
Our students work
with the Best
Related Video Courses
View MoreAnnual Membership
Become a valued member of Tutorials Point and enjoy unlimited access to our vast library of top-rated Video Courses
Subscribe nowOnline Certifications
Master prominent technologies at full length and become a valued certified professional.
Explore Now