Build an Enterprise Nextjs Rental App | AWS, EC2, Cognito, Shadcn, RDS, S3, Node, React
291K views · Feb 24, 2025 · Science & Technology
Comments · 379
@EdRohDev · 1 year ago · pinned
To try everything Brilliant has to offer—free—for a full 30 days, visit <a href="http://brilliant.org/EdRoh/">http://brilliant.org/EdRoh/</a> . <br>You’ll also get 20% off an annual premium subscription.
25
@riddhi5560 · 1 month ago
bro disappeared like he never existed. please come back with another course please
2
@LearnJapaneseWithM · 1 year ago (edited)
<a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=1437">23:57</a> Redux Store setup - wraps the entire layout<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=1594">26:34</a> people dont understand you still need to configure Zustand when using it. Also, sometimes there are problems with Zustand in the enterprise level<br>Although there is a perception that Redux tool kit boiler code is annoying, Redux is better for enterprise<br><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=4848">1:20:48</a> ER diagram<br><br><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=5466">1:31:06</a> Property Postgres fields<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=5700">1:35:00</a> Postgres download and <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=6180">1:43:00</a> PostGIS installation<br><br>!backend setup!<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=6258">1:44:18</a> Reason we dont use Next js but Node <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=6442">1:47:22</a> Every package installed for Node Backend <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=6482">1:48:02</a> Dev tools<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=6581">1:49:41</a> TS Config <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=6690">1:51:30</a> index js import and set up<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=6934">1:55:34</a> Package json config scripts - cool stuff<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7080">1:58:00</a> curl instead of postman<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7110">1:58:30</a> Prisma, but drizzle is better. Prisma is slow and big in deployment<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7255">2:00:55</a> seed fake data to show on the front end!!! <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7260">2:01:00</a> fields<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7301">2:01:41</a> seed command in package json config scripts! <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7440">2:04:00</a> connecting postgres to prisma <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7546">2:05:46</a> prisma schema<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7590">2:06:30</a> migrate <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7712">2:08:32</a> database shown in postgres table<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7799">2:09:59</a> Postman demo <br><br>!auth!<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7923">2:12:03</a> Reason I am doing auth now is because then you have all the users, roles as we build the APP <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=7944">2:12:24</a> Auth Flow Diagram (nice!) <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=8193">2:16:33</a> Cognito 10000 monthly active user - free tier forever <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=8480">2:21:20</a> Get the APP client ID, navigate to the sign up tab to add custom fields for sign up, grab User Pool ID and Client ID <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=8525">2:22:05</a> Create a .env file in Client folder. Put the User Pool ID into it<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=8640">2:24:00</a> sdk for authentication UI - Amplify <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=8776">2:26:16</a> authProvider component<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=8932">2:28:52</a> change a few things in the <div><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=9007">2:30:07</a> Provider components<br><br><br>send tokenId via url and header (inside api.ts with rtk query)-> set up auth middleware in the backend. different requests gets routed to different routes -> create tenant routes and controllers to fetch data from Prisma by using the url params<br><br><br><br>!fetch user info from db!<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=10680">2:58:00</a> rtk api.ts<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=10857">3:00:57</a> getAuthUser() - Two endpoints for either user/ manager<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=11215">3:06:55</a> to hide sensitive information in the header. (to avoid DDOS attack)<br><br>Setting up Routes on Backend<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=11443">3:10:43</a> Backend AuthMiddleware to check if request is authorized. <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=11885">3:18:05</a> in Server.js, branching the incoming request based on whether it's "/tenants" or not. send them down different middle ware. <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=11910">3:18:30</a> What does token look like<br><br><br>!Routes for Tenants!<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=12030">3:20:30</a> Tenant Routes<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=12172">3:22:52</a> Tenant Controllers<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=12207">3:23:27</a> Connecting to the DB to get Tenant info.<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=12424">3:27:04</a> if(!tenant) -> create new tenant in DB. email, username, info coming not from the parameter but from the req.body<br><br><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=12524">3:28:44</a> doing the same thing for managers <br><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=16270">4:31:10</a> <br>Api Endpoints - updateTenantSetting<br><br><br><br><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=17730">4:55:30</a><br><br>!side bar and the nav bar!<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=13328">3:42:08</a><br><br><br><br>!Filter's prep - backend! <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=18330">5:05:30</a> example where clause<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=18530">5:08:50</a> Start coding the backend Apis <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=18690">5:11:30</a> router and controller, and multer js<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=18755">5:12:35</a> property controller<br><br><br>!Filter's Bar - FrontEnd Prep - state and function setup! ->dispatch(setFilters) and updateURL()<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=22930">6:22:10</a> <Page/> Component under Search folder<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=23122">6:25:22</a> Start of global state - adding slice <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=23504">6:31:44</a> done with global state <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=23512">6:31:52</a> Start of <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=23885">6:38:05</a> Filter Starts<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=23947">6:39:07</a> For Price Range and Square Feet - they have two values<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24165">6:42:45</a> Updating the URL along side the Global state. << important! <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24188">6:43:08</a> Lodash? import {debounce} //delay function execution, so the link typing wont be get immediately reflected<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24240">6:44:00</a> building new URL Search Param -> sending the filter values through url search param. <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24602">6:50:02</a> use handleFilterChange()<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24697">6:51:37</a> formatPriceValue()<br><br><br><br>!Filter's Bar1 - FrontEnd! --> filter values gets appended to the url (global state) as soon as it is selected. <br>-> Bar1 is the fields at the top, including location, number of bed etc. they are one by one. changing the field will trigger handleFilterChange(<a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24602">6:50:02</a>) -> dispatch(setFilters(newFilters)) and updateURL(newFilters)-> then url is also changed. <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24343">6:45:43</a> <FiltersBar/> creating the UI for the filters' fields <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24390">6:46:30</a> All the UIs, and talks about the folder structure a bit<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24433">6:47:13</a> the togglefiltersfullopen() chnages the Redux state.<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=24466">6:47:46</a> Search Location.<br><br><br>!Filter's Bar2 - FrontEnd! --> storing the filter values in local state first, and when "apply" is pressed, filter values gets appended to the url (global state) <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=25043">6:57:23</a> <FiltersFull/><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=25590">7:06:30</a> Slider <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=25813">7:10:13</a> Handle amenity change. set amenity<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=26163">7:16:03</a> tedious work.<br><br><br><br><br>!Map!<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=26220">7:17:00</a><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=26744">7:25:44</a> to grab our property<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=26760">7:26:00</a> ./api endpoint <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=27297">7:34:57</a> Property Marker<br><br>!Favourite!<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=27644">7:40:44</a> <br><br>!Listing!<br><br><br>!Connecting with Backend!<br><br><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=32040">8:54:00</a> Favourite Folder<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=32400">9:00:00</a><br><br><b>Application related endpoints</b><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=36240">10:04:00</a><br><br><b>search bar on the landing page</b> - lets' go! <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=38365">10:39:25</a> <br><b>toasts noti pop-up</b><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=38720">10:45:20</a> <br><b>Deploy on AWS</b><br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=39255">10:54:15</a>
30
@Defotowe · 1 year ago (edited)
it takes me 2 hours to center a div , this dude builded and app in 2
84
@pierre.exe8 · 1 year ago
I understand that due to time constraints, the business logic is currently placed inside the controller. Just as a general best practice for those interested, it's typically recommended to keep controllers focused on handling HTTP requests and delegate business logic to services or use cases (especially in a clean architecture approach). This can help maintain better separation of concerns and make the code more maintainable in the long run
93
@kaiiemsawat2415 · 1 year ago (edited)
Dependencies at the beginning <br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=900">00:15:00</a><br>npm i lucide-react dotenv date-fns react-filepond filepond filepond-plugin-image-exif-orientation filepond-plugin-image-preview framer-motion mapbox-gl lodash react-hook-form zod @hookform/resolvers<br>npm i -D @types/node @types/uuid<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=1080">00:18:00</a><br>npx shadcn@latest init -d<br>npx shadcn@latest add avatar badge card checkbox command dialog dropdown-menu form input label navigation-menu radio-group select separator sheet sidebar skeleton slider sonner switch table textarea tooltip<br><a href="https://www.youtube.com/watch?v=X1zCAPLvMtw&t=1140">00:19:00</a><br>npm i react-redux @reduxjs/toolkit dotenv --legacy-peer-deps
98
@Mcsilverii · 1 year ago
In the world of people trying to generate dime a dozen apps with AI, we appreciate these type of deep dive videos. Thank you ❤
35
@ayushshende4290 · 1 year ago
A few suggestions, please spend a minute or two discussing the architecture of what we will be building, you already have made the ER diagram just go through it in the video explaining the data flow and how all the pieces fit together at the start of the video. If possible install packages when you are about to use them that tells us it's use-case and we are not just copying commands without know what it is. Thank you for all the hard work you've put into this.
24
@jasongrant2366 · 1 year ago
I just love when a guy calls himself a webdev by knowing html, css and js xD<br><br><br>This the real sh!t, and I'm glad that 5 years of experience make me understand everything
3
@deandrenelson7738 · 1 year ago
If you are following this tutorial like I am, please note that create-next-app@latest now uses tailwindcss v4 as the default version. One of the changes made in tailwind v4 is that the tailwind.config.ts file is not how you configure tailwind anymore. My fix was to downgrade the tailwind version in this project to 3.4.1. You may have to use the '--legacy-peer-deps' option while doing this. An alternative is to load the legacy tailwind.config file with the @config directive.( See tailwind docs).
57
@ridom8686 · 1 year ago
my notes:<br><br>npm run prisma:generate<br>npx prisma migrate dev --name init<br>npm run seed
5
@geto9495 · 1 year ago
Please Please Please Use timestamps
7
Up next

Build a Nextjs Project Management App & Deploy on AWS | Cognito, EC2, Node, RDS, Postgres, Tailwind
EdRoh · 330K views

Build a Nextjs Learning Management App | AWS, Docker, Lambda, Clerk, DynamoDB, ECR, S3, Shadcn, Node
EdRoh · 175K views

Build an AI Autonomous Web Agent | Next.js + FastAPI + LangGraph + Playwright (Full Stack 2026)
Codevia · 2.1K views

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra
Hayk Simonyan · 778K views

Learn CSS in Less Than 4 Hours! | Complete Beginner to PRO CSS Tutorial
Xbixo Tech · 3.8K views

Build 3 Complete Full-Stack Web Apps and Launch Your Developer Career
JavaScript Mastery · 416K views

Build & Deploy a Production-Ready Patient Management System with Microservices: Java Spring Boot AWS
Chris Blakely · 805K views

Full Stack App Build | Travel Log w/ Nuxt, Vue, Better Auth, Drizzle, Tailwind, DaisyUI, MapLibre
Syntax · 100K views

Train and Deploy a Multimodal AI Model: PyTorch, AWS, SageMaker, Next.js 15, React, Tailwind (2025)
Andreas Trolle · 71K views

Learn Snowflake in 2 Hours| High Paying Skills | Step by Step For Beginners
Data Engineer Academy · 526K views

041 Syncing Guest and User Cart | Django + Next.js E-Commerce
Jamil Codes · 48 views

Build and Deploy a SaaS AI Agent Platform | Next.js 15, React, Better Auth, Polar | Full Course 2025
Code With Antonio · 378K views

React JS Full Course 2024
Anson · 210K views

AI SAAS Realtime Video Sharing + Desktop App: AWS, Cloudfront, Nextjs, Electron, Express, Socket.io
Web Prodigies · 280K views

Build a Real Estate Management System using ReactJS | MERN Stack Full Project (Multi-User) 2026
Hexagon Digital Services · 32K views

AI Engineering Full Course - Build and Deploy a Real AI App
Dave Ebbelaar · 190K views

Full stack SaaS ScrapeFlow: NextJs course with React, Typescript , React-Flow, Prisma, ReactQuery
Kliton Bare · 348K views

Kubernetes Zero to Hero: The Complete Beginner’s Guide (2025 Edition)
Alta3 Research · 421K views

Full-Stack E-Commerce App with Microservices Architecture | Monorepo E-Commerce App Full Course
Lama Dev · 187K views

Build and Deploy a Banking App with Finance Management Dashboard Using Next.js 14
JavaScript Mastery · 1.5M views