Published On May 23, 2023
Neon: https://bit.ly/tomdoestech
In this video, you will build a multi-tenanted, Role-Based access control authentication API with Node.js, Drizzle ORM, TypeScript, PosgresSQL & Neon.
Repository: https://github.com/TomDoesTech/user-api
0:00 Introduction
5:07 - Bootstrap application
15:13 - Setup Drizzle ORM
20:04 - Define schemas
35:10 - Application module
44:17 - Default roles
56:50 -Register user
1:18:37 - Login
1:35:18 - Create a role
1:41:22 Assign role to user
1:47:30 Guards
2:01:03 Outro
Thank you to Neon for sponsoring this video. If you want a managed PostgresSQL database with a generous free tier, make sure you check out Neon https://bit.ly/tomdoestech
What you will learn:
- How to create a multi-tenant application
- How to create a role-based access control system
- Some basic relational database concepts
- A nice and neat file structure for backend services
- RESTful API design
- TypeScript
- Fastify
- How to use Drizzle ORM
🌎 Follow me here:
Discord:   / discord Â
Twitter:   / tomdoes_tech Â
Facebook:   / tomdoestech​ Â
Instagram:   / tomdoestech​ Â
TikTok:   / tomdoes_tech Â
☕ Buy me a coffee: https://www.buymeacoffee.com/tomn