YouTube2Text

Vibe-coding A LLM Learning App and Deploying On VPS for $5 — Transcript

by Nicolai Nielsen · 6,001 words · 869 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Let's take a look at how I'm building
  2. 0:01all my software system, apps, micro
  3. 0:04service, and everything and deploying
  4. 0:06them, hosting them on the internet in
  5. 0:08just a few clicks. You don't really need
  6. 0:09to do anything, and it's actually very
  7. 0:11easy with a few steps. I'm using Coolify
  8. 0:14for managing all the apps and services
  9. 0:16that I have, which I just host on
  10. 0:19Hostinger. All you have to do is just do
  11. 0:21a few clicks, do a setup, and you have a
  12. 0:23connection, and you can have your Cloud
  13. 0:25Code, Agents, CodeX, and all those
  14. 0:28different coding tools pretty much just
  15. 0:30spin up your local apps into the cloud,
  16. 0:33so you can host them on your own. This
  17. 0:35is pretty easy. It's very, very cheap.
  18. 0:37Like for $5 or so, you can host all your
  19. 0:39apps. You can have multiple apps running
  20. 0:41on the same Hostinger servers. So, we're
  21. 0:43going to set up a VPS. You don't need
  22. 0:46any crazy hosting cost on Azure, AWS,
  23. 0:50Google Cloud Platform, all these big
  24. 0:52guys when you're just having small apps,
  25. 0:54and you can even handle multiple users,
  26. 0:56like hundreds of users on a small $5
  27. 0:59VPS. So, there's no reason for it. Get
  28. 1:02style with Cloud Code, build your apps,
  29. 1:03and I'll show you how I'm doing it. So,
  30. 1:06first of all here, let's just open up
  31. 1:07the terminal. We're going to use Cloud
  32. 1:09Code. I'm using this for everything that
  33. 1:11I'm doing. So, we're pretty much just
  34. 1:13going to vibe code a quick app and also
  35. 1:15just deploy it, so we can access it on a
  36. 1:18link because a lot of people, they only
  37. 1:19know how to take it to localhost. You
  38. 1:22can't send localhost link to your
  39. 1:24friends, so they can test out your
  40. 1:25software system. We need to host it on
  41. 1:27the internet, know how that works.
  42. 1:30And we can just have the AI agents do it
  43. 1:32for you. So, we're just going to have
  44. 1:33Cloud skip dangerously permissions.
  45. 1:35There we go. We have it up and running.
  46. 1:38So, we're going to build out a learning
  47. 1:39platform where you can just have any
  48. 1:41prompt, throw it in there, and it's
  49. 1:43going to build out a complete
  50. 1:44curriculum, a full learning guide that
  51. 1:47you can go through if you want to learn
  52. 1:49any topic, and then we're going to
  53. 1:50deploy it and host it with Coolify on
  54. 1:53our Hostinger VPS.
  55. 1:55So, I'm going to use this transcription
  56. 1:57tool. You can see it pretty much just
  57. 1:58transcribes my audio. This is a very
  58. 2:00cool tool if you want to write code,
  59. 2:02build apps fast.
  60. 2:04I want to build out a learning platform
  61. 2:06where I can learn any topic. We want to
  62. 2:07connect a
  63. 2:09large language model
  64. 2:10LLM, which is going to set up all the
  65. 2:12context, the curriculum, all the
  66. 2:14different topics, and the content and
  67. 2:16context inside each curriculum as well.
  68. 2:19So, we want to build a Duolingo-style
  69. 2:21web app where we have the gamified
  70. 2:23experience, we have the XP, all that.
  71. 2:25So, we need a front-end, back-end, we
  72. 2:27need a database, user sign-up and log-in
  73. 2:29so we can track the progress, and we
  74. 2:31should both include question, quizzes,
  75. 2:34course content,
  76. 2:36check boxes, all these different things
  77. 2:38in the exact same style as Duolingo, but
  78. 2:41we just want to be able to specify a
  79. 2:42topic,
  80. 2:44and it should build out the full
  81. 2:46course curriculum and the full learning
  82. 2:48platform on the go based on a single
  83. 2:51input.
  84. 2:56So, this is pretty much just how I'm
  85. 2:57starting out all my software systems
  86. 2:58that I'm building. We need to build out
  87. 3:00the foundation. We can ask pretty much
  88. 3:02just ask it for the text stack as well.
  89. 3:04I usually also do that. So, we want to
  90. 3:06use React from for a front-end, FastAPI
  91. 3:09for a back-end, and we want to have a
  92. 3:11PostgreSQL database
  93. 3:14for handling all our data. Also, we're
  94. 3:17going to deploy this on Hostinger with
  95. 3:19Coolify. So, we need to make it ready
  96. 3:20for that. We can just set up our own
  97. 3:22Docker Compose file, and then we're
  98. 3:24going to deploy with our Docker Compose
  99. 3:25file on Coolify.
  100. 3:31So, this is everything that we need to
  101. 3:32specify. I just gave it the text stack
  102. 3:34and also just context around where is
  103. 3:36this actually going to be hosted because
  104. 3:39while it's building it out, we're going
  105. 3:40to take a look at how we can set up the
  106. 3:41VPS. So, once it's done generating it,
  107. 3:45then we can just go in and host it
  108. 3:46directly. So, this is pretty cool. It's
  109. 3:48just going to go through the list. It
  110. 3:50will come up with a plan.
  111. 3:53Let's see if it actually starts doing
  112. 3:54the coding or it needs some follow-up
  113. 3:57questions. So, once you confirm one to
  114. 3:59three above,
  115. 4:00we want everything and we want to build
  116. 4:02the best system in the whole world.
  117. 4:07And also just giving it the context
  118. 4:08around, "Okay, we want to use Docker
  119. 4:10Compose because we can just have our
  120. 4:12Docker Compose file getting
  121. 4:14spun up on our VPS." So, we'll be using
  122. 4:17Hostinger to host our app here. They
  123. 4:19have tons of different services and also
  124. 4:21very affordable plans. You can go in and
  125. 4:23take a look at the pricing where you can
  126. 4:25see we have a premium, business, and
  127. 4:27cloud startup. So, you can get started
  128. 4:28with just a few bucks per month. What
  129. 4:31we're going to use in this video, they
  130. 4:32have tons of services in here, but is
  131. 4:34the VPS hosting where you just have your
  132. 4:36own computer in the cloud that you can
  133. 4:38do anything that you want with and host
  134. 4:40it. So, it's pretty much just an AI
  135. 4:41managed computer. You can go in and
  136. 4:43choose the specific plan. Right now, I'm
  137. 4:45just going to go with this KVM 2, which
  138. 4:47is the one that I have deployed all my
  139. 4:49apps on that we're going to take a look
  140. 4:51at in a second. So, this is very, very
  141. 4:53affordable and you have full flexibility
  142. 4:55on your end and it's one-click
  143. 4:56deployment. So, you can have Qualify,
  144. 4:58you can spin up different agents, Cloud
  145. 5:00Code, all these things in one-click
  146. 5:02deployment. So, if you use my coupon
  147. 5:05code, it will be down in the
  148. 5:06description. You can use my link coupon
  149. 5:08code to get additional 10% off. So, you
  150. 5:10can hit apply. You will get 10% off with
  151. 5:13my coupon code Nelson. You can choose
  152. 5:15the specific period. So, here you can
  153. 5:17see we have 24
  154. 5:18month period. If you want to get the
  155. 5:20highest savings, you can also go all the
  156. 5:21way down to 1 month.
  157. 5:24This is pretty cool. This is what we're
  158. 5:25going to use. You can choose the server
  159. 5:27location. You can choose all the
  160. 5:28operating systems that you want to
  161. 5:29install as default or if you want to
  162. 5:31have any applications or services
  163. 5:33running, which we're going to do with
  164. 5:35Qualify. So, let's now jump into
  165. 5:37Hostinger, which I'm using for hosting
  166. 5:40all my apps, all my VPS. I even have
  167. 5:42just a single VPS where you can have
  168. 5:43multiple same apps running at the same
  169. 5:45time. You can have different domains.
  170. 5:47I'm using traffic for handling all the
  171. 5:49different routing before the different
  172. 5:51domains and the different apps. So, I
  173. 5:53have a bunch of different stuff here.
  174. 5:54Let's just take a look at it. We have
  175. 5:56the Vision AI agent. io, this is my
  176. 5:58Vision dashboard.
  177. 6:00What more do I have? I have my stock
  178. 6:02sentiment running there. So, all the
  179. 6:03apps that I'm web coding, building out
  180. 6:04there, I'm hosting on a single VPS. It
  181. 6:07only cost $10 per month for me to run
  182. 6:10it. It does automatic backup and all
  183. 6:12these things and then I just have
  184. 6:13Coolify running as well. If we go back,
  185. 6:16you can see you can host website, you
  186. 6:18can have a VPS. They have some agents
  187. 6:20tabs, Horizon we're going to take a look
  188. 6:22at in a second, where you can build apps
  189. 6:24directly on Hostinger and they will
  190. 6:25deploy it. I prefer to still just do it
  191. 6:27on my own because I can have all my
  192. 6:29services, I can set up Coolify, but all
  193. 6:31you have to do is just manage your VPS
  194. 6:34in here. If you just click on the VPS,
  195. 6:36you can get a VPS here.
  196. 6:38KVM VPS. You choose the specific
  197. 6:41location where you want it. Let's just
  198. 6:43take some French in Europe. And you can
  199. 6:45then choose what operating system you
  200. 6:47want to deploy it on. Right now, I'm
  201. 6:50pretty much just searching for Coolify.
  202. 6:51It's going to use Coolify installed in
  203. 6:54Ubuntu 24.04
  204. 6:56and this is just an open-source platform
  205. 6:58for managing the deployment, managing of
  206. 7:01the application, so we can spin up
  207. 7:03Docker containers, we can spin up
  208. 7:05anything that we want. We can have our
  209. 7:07own Postgres server just running in
  210. 7:08there and they have everything out of
  211. 7:10the box. It's just sources that we can
  212. 7:12connect. I'm going to show you that in a
  213. 7:13second and we can set up our CI/CD
  214. 7:16pipeline, all these fancy words. You
  215. 7:18don't really need to know it. You just
  216. 7:19have Coolify set up on your VPS, you
  217. 7:21have your cloud code, you have your idea
  218. 7:23and then just tell cloud code to do all
  219. 7:25of it for you. But then you just hit
  220. 7:27Coolify, you select it, you set up your
  221. 7:29root password, your SSH key to your
  222. 7:31computer and it will have access
  223. 7:33directly. So, once that is up and
  224. 7:35running, you will then have your VPS.
  225. 7:37If I go back to Hostinger, to my
  226. 7:39account, I can go in and manage my VPS.
  227. 7:42So, we can see it's running Ubuntu, it
  228. 7:44has CPU usage, you can see all the
  229. 7:45tracking, you can see the OS panel, you
  230. 7:48can do backup and monitoring. So, for
  231. 7:50only like $5 a month, you can add
  232. 7:52automatic daily backups, so your data is
  233. 7:55protected. It's going to run
  234. 7:57automatically every single day, you
  235. 7:58don't need to take care of that. If
  236. 8:00you're building out a lot of database,
  237. 8:01nothing worse than losing your data,
  238. 8:03especially if you have users on your
  239. 8:05platform. Even just if you're building
  240. 8:07your own personalized software systems.
  241. 8:09I'm building tons of personalized
  242. 8:11software systems as I just showed you
  243. 8:12here for my own personal use, but it's
  244. 8:15still very important to have backups.
  245. 8:18You can have APIs, you can connect to it
  246. 8:19with API, you can even hook up Cloud
  247. 8:21Code, so you can see connect your IDEs
  248. 8:23to Hosting or MCP, Cloud Code, Cursor,
  249. 8:26WinSurf, JetBrains. All you have to do
  250. 8:28is just enter your configurations with
  251. 8:30your API key, and then your IDE Cloud
  252. 8:32Code can talk to Hosting or directly,
  253. 8:35set up the VPS, set up all the
  254. 8:36configurations. I just prefer to do it
  255. 8:38myself because again, I can just ask
  256. 8:40Cloud Code, what should I do? What what
  257. 8:42should I click on? And it's going to
  258. 8:44tell you.
  259. 8:45So, once we have it up and running, we
  260. 8:46can see that I have my IP. This is cool
  261. 8:49if I had that I'm hosting on my VPS
  262. 8:51already. So, this is just my tool for
  263. 8:53handling my deployment of the software
  264. 8:56systems.
  265. 8:57So, let's go and I'll take a look at the
  266. 8:58projects. This is my first project. I
  267. 9:00don't have any resources in here, but
  268. 9:02this is where we're going to deploy our
  269. 9:04learning platform. So, we can go and add
  270. 9:06a resource. You can see a public
  271. 9:08repository, private repository. You can
  272. 9:11have Docker Compose files, which we're
  273. 9:12going to use. You can also just have a
  274. 9:13public repository. PostgreSQL database,
  275. 9:18Redis, KDB,
  276. 9:20MongoDB, ClickHouse.
  277. 9:23It's just a single click. You can just
  278. 9:24post grace, what post grace version you
  279. 9:26want to use, post grace 18. You set up
  280. 9:29all your name, your username, your
  281. 9:31password.
  282. 9:33That's it. Then you have a
  283. 9:36database hosted on the internet. You can
  284. 9:38connect to it. You can start storing
  285. 9:39data in there, create your tables, and
  286. 9:41that's all you need. This is much, much
  287. 9:44easier, much, much cheaper than using
  288. 9:46Azure and all other all these other
  289. 9:48tools, and it's just so much easier to
  290. 9:49get started with, and everything is
  291. 9:52free. This is open source, and you just
  292. 9:53need to have your $5 VPS. If you're
  293. 9:56interested in VPS, like use my link down
  294. 9:58in the description.
  295. 10:00It's very cool. It's very easy to get
  296. 10:02started with. I'm going to create a ton
  297. 10:03more videos cuz this is how I'm hosting
  298. 10:05my app and getting into production fast.
  299. 10:09So, if you just take a look at some of
  300. 10:10the other sources before jumping back
  301. 10:11into our code, I have other videos going
  302. 10:14over all these different things as well.
  303. 10:16You can also set up API keys to Coolify
  304. 10:18so it has an API. So, Cloud Code, if you
  305. 10:21give it the API key, it can do all the
  306. 10:23setup in here for you. It can set up the
  307. 10:26S3 storages. You can connect S3 storages
  308. 10:28for backups as well yourself. If You can
  309. 10:30also just do it with Hostinger. It's
  310. 10:32roughly the same cost, and it's just a
  311. 10:34one-click. You can set up your
  312. 10:35environmental variables, all your
  313. 10:37sources, connect GitHub, your CI/CD
  314. 10:39pipeline through the Coolify API. So,
  315. 10:41everything that you're doing here could
  316. 10:43also just be that you have Cloud Code
  317. 10:45say that, "Okay, on my Coolify server, I
  318. 10:47want you to spin up a new
  319. 10:50database, connect to it, and that's
  320. 10:53pretty much everything that we need."
  321. 10:56This is very cool. You can see all the
  322. 10:57different sources, the available
  323. 10:59services.
  324. 11:01They have everything that you can pretty
  325. 11:02pretty much think about and that you
  326. 11:04would need for any software system that
  327. 11:07you're building. Like you can just skim
  328. 11:08through it. It's pretty cool, and it's
  329. 11:10just a single click. Let's go back into
  330. 11:13our app again. It's still building it
  331. 11:15out. We can see we have our back end. We
  332. 11:17have our deploy. We have our front end.
  333. 11:18We have an environmental variable
  334. 11:21example. So, we need to have our
  335. 11:22Postgres database. We need to have our
  336. 11:24back end.
  337. 11:26We have some secret keys, and we
  338. 11:27probably also have our Anthropic API key
  339. 11:29that that to hook up.
  340. 11:31Some Google OAuth.
  341. 11:33Let's just have log in and log out just
  342. 11:35to simplify it a bit. But it's pretty
  343. 11:37much just going to run here for like 20,
  344. 11:3930 minutes, build out our full app.
  345. 11:42Cloud code has been so good now at just
  346. 11:43being authentic, like really just
  347. 11:45getting things done. And while it's
  348. 11:47generating, you can go grab a coffee.
  349. 11:49You could even spin this up in Cloud
  350. 11:51Code's desktop app, but this is how I'm
  351. 11:53building apps, how I'm getting fast into
  352. 11:54production. We're not talking about
  353. 11:56building enterprise systems, but we're
  354. 11:58talking about building out your own
  355. 12:00ideas, building out personalized
  356. 12:01software that can make your day and also
  357. 12:04your life easier and more efficient.
  358. 12:07But it's also just going in this
  359. 12:08direction where it becomes much, much
  360. 12:10easier to do. And if you're really
  361. 12:12experienced software engineer,
  362. 12:14you can build like really, really strong
  363. 12:17apps which you couldn't do before. You
  364. 12:20would probably need like a team of
  365. 12:22three, four, five people. Now, as a
  366. 12:24single person, you can do all that work.
  367. 12:27So, let's just let it run here. Then
  368. 12:29we're going to deploy it straight
  369. 12:30[snorts] after. That's all we have to
  370. 12:32do. We can tell it to the port to
  371. 12:33GitHub. We pull it from GitHub, deploy
  372. 12:35it, and we can take a look at our
  373. 12:37domain. Okay, so now it has generated
  374. 12:39the first iteration. So, we can see we
  375. 12:41have our back end FastAPI. We have our
  376. 12:43database connection up and running with
  377. 12:45an email and password. We have our front
  378. 12:47end up and running with Vite, React,
  379. 12:49Tailwind. So, it's a pretty good front
  380. 12:51end stack. And we have Docker Compose
  381. 12:53and Coolify production, so traffic
  382. 12:55label, health checks, auto migration,
  383. 12:57Nginx for the SPA. All we have to do is
  384. 13:00pretty much just run it. So, I've
  385. 13:02created this environmental example. All
  386. 13:04I have to do is just drop in my OpenAI
  387. 13:06API key.
  388. 13:08And let's just rename this to only.env.
  389. 13:11That's everything that we need to do.
  390. 13:13The rest is in here, the model that
  391. 13:15we're using. We're not going to use
  392. 13:17Google OAuth yet, but it's ready to use
  393. 13:19that as well. You just need to set it
  394. 13:20up. It will be a bit more configuration.
  395. 13:22And we have our Vite front end URL. The
  396. 13:25only thing that we have to do is pretty
  397. 13:27much just go into our terminal. We can
  398. 13:29open up a new terminal.
  399. 13:32And we can docker compose build it.
  400. 13:40Docker compose up build. It's going to
  401. 13:42build our post grace database. It's
  402. 13:44going to set up our front end and also
  403. 13:46our back end. So while it's actually
  404. 13:48just building there, let's just have it
  405. 13:49push it to GitHub. I want to push this
  406. 13:52code base to GitHub so we can deploy it
  407. 13:54to Coolify as well.
  408. 13:59There we go. It's just going to create a
  409. 14:01new repo to GitHub and then we can go
  410. 14:03inside our Coolify instance which we're
  411. 14:05hosting on our Hostinger VPS. And that's
  412. 14:08pretty much everything that we have to
  413. 14:10do. It's setting up the front end now.
  414. 14:12It's around 2 minutes for setting up our
  415. 14:14back end, our front end.
  416. 14:16Now the service back end front end is
  417. 14:18running. It's built. It's created. There
  418. 14:20we go. Now it's pretty much just
  419. 14:22running. So we got an error here.
  420. 14:24Something's driver failed for our your
  421. 14:26learning platform. Let's just ask it
  422. 14:29what is going on here.
  423. 14:41There we go. It's logged in to my
  424. 14:42GitHub.
  425. 14:44It's going to create and push the files.
  426. 14:47It's going to commit it first and then
  427. 14:48it's going to push the files to our
  428. 14:50GitHub repository. It will probably give
  429. 14:51us the link and we can open it up and
  430. 14:53take a look at it. This will be public
  431. 14:55and you can go in and take a look at it
  432. 14:57as well. So here you can see
  433. 14:59uh I'll just
  434. 15:02take this one.
  435. 15:06It's just going to commit it to the repo
  436. 15:08learning platform.
  437. 15:11Let's restart the docker compose. So
  438. 15:12docker compose down.
  439. 15:14I had to do some fixes with some of the
  440. 15:16ports.
  441. 15:17Docker compose up again. Let's see. Now
  442. 15:19it's going to create our front end.
  443. 15:22And it should be running now.
  444. 15:26I think we're good to go. Should be
  445. 15:28There we go. We got our front-end
  446. 15:30running. Now we have our login screen.
  447. 15:32We still got an error here that it might
  448. 15:34have to go through and fix. There's like
  449. 15:36a database learner does not exist. So it
  450. 15:38probably hasn't created all these users
  451. 15:41and also
  452. 15:43the initial course curriculum. Let's
  453. 15:45just go in there.
  454. 15:47And while we do that, we have now
  455. 15:49created our learning platform link. I'm
  456. 15:52going to open it up.
  457. 15:56And there we go. We have our learning
  458. 15:57platform. Everything is committed. We
  459. 15:58have our readme file. We have the full
  460. 16:00tech stack at the top where we have
  461. 16:02front-end, back-end, DB, LLM, and also
  462. 16:05how we deploy it with Docker Compose to
  463. 16:07Coolify on Hostinger. This is pretty
  464. 16:09much what I'm doing for all my software
  465. 16:11systems out there. I also just have a
  466. 16:12template that I'm using. If I have some
  467. 16:14specific things that I need to use, I
  468. 16:16just have a markdown file with the tech
  469. 16:18stack and I can go in there and change a
  470. 16:19few things. Then I usually just attach
  471. 16:21that to my
  472. 16:24prompt where I'm actually setting up the
  473. 16:26full system from scratch. But that's
  474. 16:28more a bit more like what you like to
  475. 16:30use the tech stack. You can just do
  476. 16:31this. It's going to give you pretty much
  477. 16:33the same results. But if I have want to
  478. 16:34have multiple services running, the same
  479. 16:37brand style, all these things in the
  480. 16:39apps, you can have your own custom like
  481. 16:41markdown file that you're just giving it
  482. 16:43when you're building out a new app and
  483. 16:44you can spin up apps in the exact same
  484. 16:47style with the same tech stack as all
  485. 16:50your other services. So everything is
  486. 16:52ready here. You can go and access it now
  487. 16:53on my GitHub and we can also start set
  488. 16:55it up on Hostinger while we're fixing
  489. 16:58the bugs in cloud code which is just
  490. 17:00running in the background. So let's go
  491. 17:01back to Coolify. We have our project at
  492. 17:03the top. Let's just go with a public
  493. 17:05repository. We need the repository URL.
  494. 17:09Let's go back into the code.
  495. 17:11I'm going to copy this one.
  496. 17:14There we go. We check the repository. We
  497. 17:16have the main. We can have the build
  498. 17:17pack but the mail build pack we're going
  499. 17:19to use. You can also just use a static
  500. 17:20file. If you have a HTML page that you
  501. 17:22want to host it with your own
  502. 17:25could be your own personalized website.
  503. 17:28You can just have an HTML page. You host
  504. 17:29that.
  505. 17:31And that's much cooler than any CV out
  506. 17:32there. That's another cool example that
  507. 17:34you can spin up with Cloud Code in very,
  508. 17:36very little time.
  509. 17:39Let's use Docker Compose. So, we have
  510. 17:40our base directory. We have our Docker
  511. 17:42Compose YAML file. I even think this one
  512. 17:45here. If we go back, we have our Docker
  513. 17:46Compose Coolify. dot YAML. Let's just
  514. 17:49make sure that we use that one.
  515. 17:52And it's just in the root directory. We
  516. 17:54just hit continue. And let's see if we
  517. 17:56are able to deploy the app. So, Docker
  518. 17:59Compose file has been loaded.
  519. 18:02It should be able to find it. Once you
  520. 18:04have set up your app, you can see all
  521. 18:05the environmental variables. If you want
  522. 18:07to add them in here, we need to add our
  523. 18:09Open AI API key in here. You can set up
  524. 18:12the
  525. 18:13API from Coolify. Give it the API key,
  526. 18:15and it can do all of it from the
  527. 18:16terminal as well. But here, we only need
  528. 18:18to set up our Open AI API key. So, you
  529. 18:21can have rollbacks. You can preview the
  530. 18:23deployments that you're doing. So, here
  531. 18:25we can go inside our deployment. Nothing
  532. 18:27is running right now. We can see the
  533. 18:28logs. You can access the terminal.
  534. 18:31Everything is available here.
  535. 18:34So, let's just try to hit deploy. It's
  536. 18:35going to start a deployment in progress.
  537. 18:38It's going to run it in the exact same
  538. 18:40way as we just did locally with our
  539. 18:42Docker Compose file. Now, it's going to
  540. 18:44pull and build the required images.
  541. 18:46Do the exact same thing as local. But it
  542. 18:48now it's going to host it on the
  543. 18:49internet. So, you can always just track
  544. 18:51the progress of your
  545. 18:53deployment. We need to just make sure
  546. 18:55that it works locally first. And then we
  547. 18:57just push it, and it's going to work in
  548. 18:59the exact same way in our deployed app.
  549. 19:05So, we need to rebuild it now.
  550. 19:11You could even just ask Cloud Code to do
  551. 19:13all these steps here. I just wanted to
  552. 19:15show you guys running it. So, fill in
  553. 19:17for me, login page, and you should be
  554. 19:19in. New course, type any topic, and we
  555. 19:21should be good to go. It's all just
  556. 19:23opening it up in here.
  557. 19:26So, we have a demo account. You can also
  558. 19:28just create an account.
  559. 19:31Go into our Chrome.
  560. 19:32So, just fill in for me. We log in. Now,
  561. 19:35we have our platform. We have a new
  562. 19:36course. We have the leaderboard. We have
  563. 19:38our learning tab. So, let's go in and
  564. 19:39create in our first course.
  565. 19:41Let's just call it neural networks
  566. 19:47and LLMs.
  567. 19:48We're going to go with intermediate. We
  568. 19:51can have
  569. 19:52some examples, investing 101, Latin
  570. 19:54American history. Let's just generate
  571. 19:56the course. It's going to build out the
  572. 19:57curriculum. So, it takes probably like a
  573. 19:59minute or so.
  574. 20:01We have the XP system. We have the
  575. 20:02energy system. We have the heart system.
  576. 20:05So, pretty much the exact same style as
  577. 20:06Duolingo. Let's see how it creates the
  578. 20:08course. So, now it's going to create all
  579. 20:09the course content. With a large
  580. 20:11language model, you can just specify any
  581. 20:13topic that you want to learn instead of
  582. 20:15just learning languages or specific
  583. 20:16things on Duolingo. Now, you can just
  584. 20:19spin it up here.
  585. 20:22We can see all the API calls coming
  586. 20:23through from our courses.
  587. 20:26>> [cough]
  588. 20:27>> We're using GPT 5.4
  589. 20:30at the timestamps. So, now I want to
  590. 20:32host it on our own custom domain as
  591. 20:33well. So, we can connect
  592. 20:35everything together. So, all I have to
  593. 20:37do is to go into my provider. I have all
  594. 20:40these different domains. Let me just
  595. 20:41take this one. We just have to go into
  596. 20:43the DNS settings and add our records.
  597. 20:47So, we go inside the DNS records. We
  598. 20:49need to add new A
  599. 20:52A records. And if we just go back into
  600. 20:54our code,
  601. 20:55what
  602. 20:56should
  603. 20:58I add to my
  604. 21:00DNS provider?
  605. 21:11>> There we go.
  606. 21:14And also, the only reason why it didn't
  607. 21:16work in here was because I haven't
  608. 21:17connected the environmental variables.
  609. 21:19So, I had just had to set up the
  610. 21:21environmental variables and it was now
  611. 21:23deploying and we had a successful run.
  612. 21:25But, to be able to access the app, I
  613. 21:27will just set it up on our own custom
  614. 21:28domain and everything should be good to
  615. 21:30go. All because I need to add that
  616. 21:32inside our
  617. 21:34configuration for deployment and our
  618. 21:36environmental variables.
  619. 21:39So, let's go back in here.
  620. 21:41All we have to do
  621. 21:43is just go in and specify these things
  622. 21:44in Coolify. We need to have learn and
  623. 21:46then API.learn. So, this will just be
  624. 21:49our host and we have our value.
  625. 21:54So, I'll just take this value here
  626. 21:56and we just have it at learn.
  627. 22:02This is going to be our host. We have
  628. 22:03our IP.
  629. 22:07And here we can just go with default.
  630. 22:09We're going to create the record. We
  631. 22:11will create one more record and that's
  632. 22:12just going to be our API, API.learn. So,
  633. 22:14this is where our API will will will
  634. 22:16run. We have our there and now we have
  635. 22:18set up our DNS setting. So, these are
  636. 22:20the two A A records that we have added.
  637. 22:22Now, we can then access it on learn
  638. 22:25.mydomain and this is pretty much the
  639. 22:27domain that we're going to set up.
  640. 22:30It's just going to map it to that. So,
  641. 22:32we have API.learn and just learn
  642. 22:35.mydomain in here and this is
  643. 22:37agent-to-agent.company.
  644. 22:40So, if you don't specify like learn in
  645. 22:42front, we can also just don't do that
  646. 22:43and we can just have nothing here and IP
  647. 22:46then just going to map to that.
  648. 22:49So, now we have agent-to-agent.company.
  649. 22:51We can access on all these three URLs
  650. 22:53and our API is going to run on this one.
  651. 22:57So, yeah. There we go. Now, we just have
  652. 22:59to wait for it. While we're doing that,
  653. 23:01we just need to add all these things to
  654. 23:03our Coolify platform. I've already done
  655. 23:05that. So, let me just give the agent
  656. 23:08that this is the API.
  657. 23:11This is our domain connected.
  658. 23:18We've added all that. The only one that
  659. 23:19we need is this
  660. 23:21beta URL on the API.
  661. 23:26So, we can act like this to only have
  662. 23:27API that learn. We don't even need that.
  663. 23:29We can just have API.
  664. 23:31So, API.
  665. 23:33We'll grab our IP.
  666. 23:37There we go. We're going to write
  667. 23:38>> [clears throat]
  668. 23:38>> that record. We will not have this
  669. 23:40learning record. We don't really need
  670. 23:41that. So, let's just delete that. Learn.
  671. 23:44Agent, maybe we can use that later on.
  672. 23:46So, we have these two.
  673. 23:48There we go. We've connected these.
  674. 23:50We give it to Cloud Code. Now, we just
  675. 23:52need to take our URL, throw that into
  676. 23:55our environmental variables on Coolify.
  677. 24:00Again, this is much easier if you have
  678. 24:02set it up like multiple times. I usually
  679. 24:03just have a script connecting it with
  680. 24:05the API key. That's much, much faster.
  681. 24:09But just to show you like step-by-step
  682. 24:11so you don't have to give it API key to
  683. 24:14Cloud Code and doing all that
  684. 24:16dangerous stuff now. Environmental
  685. 24:17variables.
  686. 24:19If you scroll down, we have our beta API
  687. 24:21URL.
  688. 24:22There we go. We update that one.
  689. 24:24We have all the rest running fine. Let's
  690. 24:27see if we needed to do one more. We have
  691. 24:29the domain.
  692. 24:36Domain, domain, domain.
  693. 24:38Let's add a new
  694. 24:40here.
  695. 24:41Domain.
  696. 24:43This is the value and we save it. Now,
  697. 24:45we should be good to go. We pretty much
  698. 24:47have everything connected. I think we
  699. 24:49should be able to deploy it. So, the app
  700. 24:50is going to run on this URL. We have the
  701. 24:52API documentation. We can log in with
  702. 24:55this demo for now.
  703. 24:58And just let me know when it's up and
  704. 24:59I'll give you a quick intro and sanity
  705. 25:00check.
  706. 25:02I think we are good to go now. Let's
  707. 25:04just try to redeploy it.
  708. 25:06And see if we are able to access on our
  709. 25:08URL. It's just going to take a second.
  710. 25:10So, it's just applying the latest
  711. 25:11configuration. It's deploying. We can go
  712. 25:13inside hosting again. They also have
  713. 25:14this vibe coding tool called Horizons,
  714. 25:16which is pretty cool as well. I just
  715. 25:18tried to do the exact same thing. So, we
  716. 25:19just want to build this Duolingo style
  717. 25:22learning app. So, we get the learning
  718. 25:23experiences, content style, the
  719. 25:25questions, quizzes, the gamified
  720. 25:27experience. And then this is just like a
  721. 25:29lovable V0 and so on. But, everything
  722. 25:32will just be hosted on Hostinger as
  723. 25:33well. And you have the chat interface
  724. 25:35where you can ask it to do anything.
  725. 25:37There are some integrations up at the
  726. 25:38top. But then it just asked some
  727. 25:40follow-up questions. How would you How
  728. 25:41should users input the topic? Should the
  729. 25:43app save user progress?
  730. 25:47It's just going to add a few follow-up
  731. 25:48questions, a user account system, a
  732. 25:50similar approach where it just saves it
  733. 25:51locally to their site. So, now we can
  734. 25:54see we have our login page. It's pretty
  735. 25:56much good to go. And then yes to a user
  736. 25:58account. So, we have the login and also
  737. 26:00sign up style. And now everything is
  738. 26:03pretty much just good to go. You can hit
  739. 26:04publish. It will become available. You
  740. 26:06can connect your custom domain in here
  741. 26:09as well. So, now it's just going to
  742. 26:11publish. You can test out the app here.
  743. 26:12You can edit the context, the code,
  744. 26:15data, all of it directly from the UI as
  745. 26:17well. So, you don't even need to spin up
  746. 26:19cloud code. You can use Horizons
  747. 26:20directly from Hostinger. I'm going to
  748. 26:22create more videos covering that. So,
  749. 26:23definitely stay tuned for this. It's
  750. 26:25just going to publish it now.
  751. 26:27And then it will be available in here.
  752. 26:29We can try to just go in and see. I have
  753. 26:32this website up and running. You can
  754. 26:34connect the domain directly. You can
  755. 26:35edit the website. But, this is the one
  756. 26:37is just getting published.
  757. 26:40This is very cool. You can also use it
  758. 26:42for this. Let's see if our other app has
  759. 26:44been
  760. 26:45deployed. Not yet. It is
  761. 26:47actually running.
  762. 26:48New container started. So, So, should be
  763. 26:50good to go. Now, we can just go in and
  764. 26:51add the links to our cool of five
  765. 26:54service.
  766. 26:55So, we go inside the configuration. Now,
  767. 26:57we scroll a bit down. I think it's up
  768. 26:59here. So, domains for the back end. Our
  769. 27:01back end is going to run on our API.
  770. 27:04agent-to-agent and this one here is
  771. 27:06going to run on this one. So, we save
  772. 27:08the configuration. You'll probably just
  773. 27:10have to
  774. 27:11rerun it again. So, yeah. Now, we have
  775. 27:14it running on our own custom domain
  776. 27:16agent-to-agent.company/login.
  777. 27:18We can just fill it out with a demo as
  778. 27:20we did locally. Let's log in and create
  779. 27:23a new course. So, we're just going to
  780. 27:24create the exact same one in here or
  781. 27:26maybe we can just take one of the other
  782. 27:28ones. So, let's do investing one-on-one.
  783. 27:30We're just going to create a beginner
  784. 27:32course. It's going to generate it and
  785. 27:33it's going to just going to take a bit.
  786. 27:35So, we have the courses. We have the
  787. 27:37leaderboards. Everything should be ready
  788. 27:39to go now. And now, we can see that it's
  789. 27:41done. We have our investing one-on-one
  790. 27:43beginner course. Just took around a
  791. 27:45minute. There we go. We have the full
  792. 27:47style where we can have the flow in the
  793. 27:49different units. We can go step-by-step
  794. 27:52in here. Let's just try to click saving
  795. 27:53and investing. It's going to load the
  796. 27:55sessions. Might just take a bit here the
  797. 27:58first time. There we go. Now, we have
  798. 28:00our course up and running. Saving versus
  799. 28:03investing. Identifying how saving and
  800. 28:04investing differ in purpose, risk, and
  801. 28:06expected growth. We have a minute lesson
  802. 28:08here. Saving and expect Saving and
  803. 28:10investing both help you prepare for
  804. 28:12future, but they serve different jobs.
  805. 28:14Saving is usually for short-term needs
  806. 28:15and safety, while investing is usually
  807. 28:17for longer-term goals. So, just gives
  808. 28:19you a minute lesson here and then it
  809. 28:20goes into what choice best describes
  810. 28:24saving.
  811. 28:25So, putting money into the assets that
  812. 28:27always go up quickly. Not really.
  813. 28:28Borrowing money to increase. Not really.
  814. 28:30Keeping money for safer near-term needs
  815. 28:33with lower growth.
  816. 28:35That's the best
  817. 28:36choice for saving. Just go to the next
  818. 28:38one. What is common reason people invest
  819. 28:40instead of only saving?
  820. 28:42To grow money
  821. 28:43more over time. To keep money available
  822. 28:45for tomorrow. Let's just take this one
  823. 28:48and we can see with nice investing aim
  824. 28:50for higher expected growth over time
  825. 28:51accepting more uncertainty in exchange.
  826. 28:54So, now we pretty much have our course
  827. 28:55it tracks it up here at the top. Here we
  828. 28:58have to complete it and fill it out, but
  829. 29:00this is pretty much just our first
  830. 29:02iteration of our app. You can build out
  831. 29:04whatever you want. You can do multiple
  832. 29:06iterations, but now we have the full
  833. 29:08pipeline up and running. And if we go
  834. 29:10back to Coolify, we can see everything
  835. 29:12is running. The domains are connected
  836. 29:14for a backend, it's connected for a
  837. 29:15frontend. That's the only thing that you
  838. 29:17need to add in here and then every time
  839. 29:20you push to the GitHub repository
  840. 29:23to the main branch, you can pretty much
  841. 29:25just go in and trigger the redeploy and
  842. 29:28you will have a new update on your app.
  843. 29:30That's all for this video here. Go ahead
  844. 29:32and check it out. Everything will be
  845. 29:33down in the description. Go and check it
  846. 29:35out. Make sure you set up this full
  847. 29:37system and also just understand how it
  848. 29:38works. So, Coolify, Hostinger, Cloud
  849. 29:40Code, that's all you need. Do a few
  850. 29:42iterations and then the whole process,
  851. 29:44the whole architecture and the tech
  852. 29:46stack that you're that you're using, how
  853. 29:47you're configuring Coolify, how you're
  854. 29:49configuring Hostinger, you can save that
  855. 29:51into a markdown file and you can use it
  856. 29:52across all your projects. I just wanted
  857. 29:54to show you guys how we can do each
  858. 29:56individual step so you can do it on your
  859. 29:58own and come up with your own markdown
  860. 30:00file, which I'm doing and then I can
  861. 30:01just do the exact same set set up in a
  862. 30:04few minutes when I'm creating new apps.
  863. 30:06So, that's how I'm hosting all the
  864. 30:07different apps that I have running. I'm
  865. 30:09going to do way more in the future, so
  866. 30:12definitely stay tuned for that. Hope you
  867. 30:13learn a ton. Hope to see you guys in one
  868. 30:15of the upcoming videos. Until then,
  869. 30:17happy learning.

About this transcript

This page contains the full transcript of Vibe-coding A LLM Learning App and Deploying On VPS for $5 by Nicolai Nielsen, generated from the public captions YouTube serves with the video. The transcript has 6,001 words across 869 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.