Build a File Storage App with Role Based Authorization (Next.js, Shadcn, Typescript)
Web Dev Cody
@webdevcodyAbout
This channel is a collection of various programming videos, tutorials, projects, talks, or anything software engineering and programming related. If you are new to coding and want to learn how to program or get a job in the industry, be sure to subscribe to my channel. There is a lot of great content on this channel to help you out in your coding goals.
Latest Posts
Video Description
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 https://github.com/webdevcody/file-drive 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: https://convex.dev/c/wdc Be sure to checkout Clerk here: https://dub.sh/A2JQT7h 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: https://projectplannerai.com π€ IconGeneratorAI: https://icongeneratorai.com π ThumbnailCritique: https://thumbnailcritique.com Useful Links π¬ Discord: https://discord.gg/4kGbBaa π Newsletter: https://newsletter.webdevcody.com/ π GitHub: https://github.com/webdevcody πΊ Twitch: https://www.twitch.tv/webdevcody π€ Website: https://webdevcody.com π¦ Twitter: https://twitter.com/webdevcody
You May Also Like
Urgently Need These Dev Essentials
AI-recommended products based on this video

140W C to C Super Fast Charger,Compatible with MacBook Pro 16, 15, 14, 13 Inch, MacBook Air 13 Inch, iPad Pro 2021/2020/2019/2018, Lenovo and All Type C Devices 7.2ft
![LISEN USB C Cable 240W - [6.6ft 2Pack] Nylon Braided Type C Cable Fast Charge PD3.1 USBC Fast Charging Data Cord for iPhone 17 16 Pro Max Samsung MacBook Pro,Xbox,iPad Pro/Air, Switch 2](https://m.media-amazon.com/images/I/81W90296KhL._AC_UL960_FMwebp_QL65_.jpg)
LISEN USB C Cable 240W - [6.6ft 2Pack] Nylon Braided Type C Cable Fast Charge PD3.1 USBC Fast Charging Data Cord for iPhone 17 16 Pro Max Samsung MacBook Pro,Xbox,iPad Pro/Air, Switch 2

UGREEN 130W Car Charger USB C Fast Charger PD3.0 QC4.0 PPS Fast Charging Car Adapter with 100W USB C Cable Compatible with Dell XPS, MacBook, iPhone 16 15 14 Pro Max, Galaxy S25 S24 Ultra, iPad Pro

IFEART 70W USB C Charger for MacBook Air MacBook Pro 13 14 15 16 inch 2025 2024 2023 2022 2021 2020 2019 2018, M1 M2 M3 M4 Laptop USB C Power Adapter, 6.6ft USB C to C Cable, Original Quality

Lenovo LOQ 15.6" FHD 144Hz Gaming Laptop, Intel Core i5-12450HX, NVIDIA GeForce RTX 2050, 16GB DDR5, 2TB Storage (1TB SSD+1TB Docking Station Set), Number Pad, 720p Camera, Wi-Fi 6, Win 11, Gray

Acer Nitro V 16 AI Gaming Laptop, 16" WUXGA 180Hz Display, AMD Ryzen 5 240, GeForce RTX 5050, 16GB DDR5, 512GB SSD, Backlit Keyboard, Copilot, Wi-Fi 6E, Win 11, Black, 1TB Docking Station Set

Lenovo Legion 5 15.1" WQXGA 165Hz Gaming Laptop, Intel i9 14900HX, GeForce RTX 5070 8GB GDDR7, 16GB DDR5, 2TB Storage(1TB SSD+1TB Docking Station Set), 24-Zone RGB Backlit Keyboard, Windows 11, Black

ASUS ROG Strix G16 Gaming Laptop, GeForce RTX 5070 Ti 12GB GDDR7, AMD Ryzen 9 8940HX, 64GB DDR5, 2TB SSD, Backlit Keyboard, Wi-Fi 6E, 16" WUXGA 165Hz Display, Win 11, Gray, 1TB Docking Station Set

NEEWER Advanced 18 inch LED Ring Light for Phone, LCD Touch Screen, 2.4G Remote Lights Control, 3200-5600K, Tripod Light for iPhone Action Camera, for Studio Makeup TikTok YouTube Video Salon (Black)

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Monster N-Lite 211 Wireless EarbudsοΌ Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports




















