Build a File Storage App with Role Based Authorization (, Shadcn, Typescript)
This might be my longest tutorial to date. We will be building a full stack file storage application with organizations, file upload, management, role based authorization. authentication, cron deletes, favorites, trash feature, including many UI components including dialogs, modals, toasts, dropdown, etc.
Link to repo
Note: in the video at 46:01, you can import a library directly from clerk instead of the clerk-sdk-node library like so
import type { WebhookEvent } from “@clerk/nextjs/server“
Be sure to checkout Convex here:
Be sure to checkout Clerk here:
00:00:00 Overview
00:04:55 Next Convex Setup
00:08:15 Clerk Setup
00:11:48 ShadCN
00:13:40 Clerk Components
00:16:35 First Convex Mutation
00:20:27 Convex Query
00:23:54 Auth in Convex
00:25:55 Header
00:31:03 Scope Files using OrgId
00:42:17 Clerk Webhooks
01:02:45 OrgId Authorization
01:12:55 File Upload Dialog
01:29:18 Toast Component
01:36:01 Button Loader
01:39:09 Styling Homepage
01:44:20 Delete File Dropdown
01:54:50 Empty States
02:00:26 Page Spinner
02:03:12 File Types
02:17:30 Download Button
02:18:21 Search Bar
02:29:55 Side Nav
02:33:57 Refactor Layout
02:38:56 Active Link Style
02:41:27 File Browser
02:43:43 Mark as Favorite
02:54:31 Favorites Page
03:00:21 Favorite Star
03:12:33 Role Based Authorization
03:27:02 Delete Cron
03:32:09 Restore Item
03:39:22 Upload User
03:54:06 Minor Tweaks
03:58:39 Table
04:11:28 View Toggle
04:22:44 Personal Account Bug
04:29:44 Footer & Landing Page
This video was sponsored by Convex and Clerk.
My Products
📖 ProjectPlannerAI:
🤖 IconGeneratorAI:
📝 ThumbnailCritique:
Useful Links
💬 Discord:
🔔 Newsletter:
📁 GitHub:
📺 Twitch:
🤖 Website:
🐦 Twitter:
1 view
475
107
1 month ago 00:16:03 1
Glitter Bomb 2.0 vs Porch Pirates
1 month ago 00:09:23 1
Going In REVERSE At The Farm?! Dragging Fender On The NEW Ride!
1 month ago 00:17:22 1
Risque but stunning bikinis by Black Tape Project | FashionTV | FTV
1 month ago 00:09:51 1
10 Mirrors in One Day - The Best Farm/Juice to Ever Exist in PoE -
1 month ago 00:25:56 1
#ReactOS autonomous automated build in #ULFS #CoolRetroTerm demo.
1 month ago 00:04:16 1
Selena Gomez - I’m Sorry We Lied (ft. ZAYN)
1 month ago 00:03:53 1
La Bamba (Los Lobos) feat. Andrés Calamaro | Playing For Change | Song Around The World
1 month ago 00:06:56 1
I WILL STAND AND FIGHT FOR ALL WHO CAN’T | New Earth Project
1 month ago 00:02:00 1
Create Mod / Interactive | HIGH SECURITY TRAIN
1 month ago 01:03:54 1
EMBRACE YOUR INNER-CHILD! | 60-MINUTE SPECIAL #14 | CIRQUE DU SOLEIL | OVO, BAZZAR, ALEGRIA
1 month ago 00:01:40 1
Scan to BIM: Modeling from a 3D laser scan on buildings or facilities
1 month ago 00:03:04 1
Kingdom of the Planet of the Apes | Exclusive IMAX® Trailer
1 month ago 00:00:59 1
From Pipes to Boat: Plastic Pipes and Foam Turned Nautical! 🌊🚣 #Shorts
1 month ago 00:07:14 1
Led Zeppelin - No Quarter with Lord of the Rings scenes
1 month ago 00:20:43 1
“Тазриа 4 день“ Тора на каждый день с р Давидом Мануйловым
1 month ago 00:14:32 1
Making Wood chipper mechanism [PLANS]
1 month ago 01:59:56 1
Construction of a Mountain-Side Getaway Home
1 month ago 00:00:00 1
🔴 LIVE Прославление | Церковь Божия Music
1 month ago 00:01:25 1
Final Factory Launch Trailer
1 month ago 00:27:31 1
Man Builds Hyperrealistic RC All-Terrain Vehicle Worth $2000 | Capo CD 1582X Queen by @RCPlayGround
1 month ago 00:08:37 1
Laser Scanning for As-Built Drawings
1 month ago 00:15:35 1
Дори - билд гайд | Артефакты, оружие и советы | Genshin Impact
1 month ago 00:03:49 1
Alphaville - Big In Japan (Flashlights, )
1 month ago 00:07:24 1
2023 Harley Davidson Nightrod VRSCDX by DD Designs (Walk Around)