Vibe-coding A LLM Learning App and Deploying On VPS for $5 — Transcript
Full transcript
- 0:00Let's take a look at how I'm building
- 0:01all my software system, apps, micro
- 0:04service, and everything and deploying
- 0:06them, hosting them on the internet in
- 0:08just a few clicks. You don't really need
- 0:09to do anything, and it's actually very
- 0:11easy with a few steps. I'm using Coolify
- 0:14for managing all the apps and services
- 0:16that I have, which I just host on
- 0:19Hostinger. All you have to do is just do
- 0:21a few clicks, do a setup, and you have a
- 0:23connection, and you can have your Cloud
- 0:25Code, Agents, CodeX, and all those
- 0:28different coding tools pretty much just
- 0:30spin up your local apps into the cloud,
- 0:33so you can host them on your own. This
- 0:35is pretty easy. It's very, very cheap.
- 0:37Like for $5 or so, you can host all your
- 0:39apps. You can have multiple apps running
- 0:41on the same Hostinger servers. So, we're
- 0:43going to set up a VPS. You don't need
- 0:46any crazy hosting cost on Azure, AWS,
- 0:50Google Cloud Platform, all these big
- 0:52guys when you're just having small apps,
- 0:54and you can even handle multiple users,
- 0:56like hundreds of users on a small $5
- 0:59VPS. So, there's no reason for it. Get
- 1:02style with Cloud Code, build your apps,
- 1:03and I'll show you how I'm doing it. So,
- 1:06first of all here, let's just open up
- 1:07the terminal. We're going to use Cloud
- 1:09Code. I'm using this for everything that
- 1:11I'm doing. So, we're pretty much just
- 1:13going to vibe code a quick app and also
- 1:15just deploy it, so we can access it on a
- 1:18link because a lot of people, they only
- 1:19know how to take it to localhost. You
- 1:22can't send localhost link to your
- 1:24friends, so they can test out your
- 1:25software system. We need to host it on
- 1:27the internet, know how that works.
- 1:30And we can just have the AI agents do it
- 1:32for you. So, we're just going to have
- 1:33Cloud skip dangerously permissions.
- 1:35There we go. We have it up and running.
- 1:38So, we're going to build out a learning
- 1:39platform where you can just have any
- 1:41prompt, throw it in there, and it's
- 1:43going to build out a complete
- 1:44curriculum, a full learning guide that
- 1:47you can go through if you want to learn
- 1:49any topic, and then we're going to
- 1:50deploy it and host it with Coolify on
- 1:53our Hostinger VPS.
- 1:55So, I'm going to use this transcription
- 1:57tool. You can see it pretty much just
- 1:58transcribes my audio. This is a very
- 2:00cool tool if you want to write code,
- 2:02build apps fast.
- 2:04I want to build out a learning platform
- 2:06where I can learn any topic. We want to
- 2:07connect a
- 2:09large language model
- 2:10LLM, which is going to set up all the
- 2:12context, the curriculum, all the
- 2:14different topics, and the content and
- 2:16context inside each curriculum as well.
- 2:19So, we want to build a Duolingo-style
- 2:21web app where we have the gamified
- 2:23experience, we have the XP, all that.
- 2:25So, we need a front-end, back-end, we
- 2:27need a database, user sign-up and log-in
- 2:29so we can track the progress, and we
- 2:31should both include question, quizzes,
- 2:34course content,
- 2:36check boxes, all these different things
- 2:38in the exact same style as Duolingo, but
- 2:41we just want to be able to specify a
- 2:42topic,
- 2:44and it should build out the full
- 2:46course curriculum and the full learning
- 2:48platform on the go based on a single
- 2:51input.
- 2:56So, this is pretty much just how I'm
- 2:57starting out all my software systems
- 2:58that I'm building. We need to build out
- 3:00the foundation. We can ask pretty much
- 3:02just ask it for the text stack as well.
- 3:04I usually also do that. So, we want to
- 3:06use React from for a front-end, FastAPI
- 3:09for a back-end, and we want to have a
- 3:11PostgreSQL database
- 3:14for handling all our data. Also, we're
- 3:17going to deploy this on Hostinger with
- 3:19Coolify. So, we need to make it ready
- 3:20for that. We can just set up our own
- 3:22Docker Compose file, and then we're
- 3:24going to deploy with our Docker Compose
- 3:25file on Coolify.
- 3:31So, this is everything that we need to
- 3:32specify. I just gave it the text stack
- 3:34and also just context around where is
- 3:36this actually going to be hosted because
- 3:39while it's building it out, we're going
- 3:40to take a look at how we can set up the
- 3:41VPS. So, once it's done generating it,
- 3:45then we can just go in and host it
- 3:46directly. So, this is pretty cool. It's
- 3:48just going to go through the list. It
- 3:50will come up with a plan.
- 3:53Let's see if it actually starts doing
- 3:54the coding or it needs some follow-up
- 3:57questions. So, once you confirm one to
- 3:59three above,
- 4:00we want everything and we want to build
- 4:02the best system in the whole world.
- 4:07And also just giving it the context
- 4:08around, "Okay, we want to use Docker
- 4:10Compose because we can just have our
- 4:12Docker Compose file getting
- 4:14spun up on our VPS." So, we'll be using
- 4:17Hostinger to host our app here. They
- 4:19have tons of different services and also
- 4:21very affordable plans. You can go in and
- 4:23take a look at the pricing where you can
- 4:25see we have a premium, business, and
- 4:27cloud startup. So, you can get started
- 4:28with just a few bucks per month. What
- 4:31we're going to use in this video, they
- 4:32have tons of services in here, but is
- 4:34the VPS hosting where you just have your
- 4:36own computer in the cloud that you can
- 4:38do anything that you want with and host
- 4:40it. So, it's pretty much just an AI
- 4:41managed computer. You can go in and
- 4:43choose the specific plan. Right now, I'm
- 4:45just going to go with this KVM 2, which
- 4:47is the one that I have deployed all my
- 4:49apps on that we're going to take a look
- 4:51at in a second. So, this is very, very
- 4:53affordable and you have full flexibility
- 4:55on your end and it's one-click
- 4:56deployment. So, you can have Qualify,
- 4:58you can spin up different agents, Cloud
- 5:00Code, all these things in one-click
- 5:02deployment. So, if you use my coupon
- 5:05code, it will be down in the
- 5:06description. You can use my link coupon
- 5:08code to get additional 10% off. So, you
- 5:10can hit apply. You will get 10% off with
- 5:13my coupon code Nelson. You can choose
- 5:15the specific period. So, here you can
- 5:17see we have 24
- 5:18month period. If you want to get the
- 5:20highest savings, you can also go all the
- 5:21way down to 1 month.
- 5:24This is pretty cool. This is what we're
- 5:25going to use. You can choose the server
- 5:27location. You can choose all the
- 5:28operating systems that you want to
- 5:29install as default or if you want to
- 5:31have any applications or services
- 5:33running, which we're going to do with
- 5:35Qualify. So, let's now jump into
- 5:37Hostinger, which I'm using for hosting
- 5:40all my apps, all my VPS. I even have
- 5:42just a single VPS where you can have
- 5:43multiple same apps running at the same
- 5:45time. You can have different domains.
- 5:47I'm using traffic for handling all the
- 5:49different routing before the different
- 5:51domains and the different apps. So, I
- 5:53have a bunch of different stuff here.
- 5:54Let's just take a look at it. We have
- 5:56the Vision AI agent. io, this is my
- 5:58Vision dashboard.
- 6:00What more do I have? I have my stock
- 6:02sentiment running there. So, all the
- 6:03apps that I'm web coding, building out
- 6:04there, I'm hosting on a single VPS. It
- 6:07only cost $10 per month for me to run
- 6:10it. It does automatic backup and all
- 6:12these things and then I just have
- 6:13Coolify running as well. If we go back,
- 6:16you can see you can host website, you
- 6:18can have a VPS. They have some agents
- 6:20tabs, Horizon we're going to take a look
- 6:22at in a second, where you can build apps
- 6:24directly on Hostinger and they will
- 6:25deploy it. I prefer to still just do it
- 6:27on my own because I can have all my
- 6:29services, I can set up Coolify, but all
- 6:31you have to do is just manage your VPS
- 6:34in here. If you just click on the VPS,
- 6:36you can get a VPS here.
- 6:38KVM VPS. You choose the specific
- 6:41location where you want it. Let's just
- 6:43take some French in Europe. And you can
- 6:45then choose what operating system you
- 6:47want to deploy it on. Right now, I'm
- 6:50pretty much just searching for Coolify.
- 6:51It's going to use Coolify installed in
- 6:54Ubuntu 24.04
- 6:56and this is just an open-source platform
- 6:58for managing the deployment, managing of
- 7:01the application, so we can spin up
- 7:03Docker containers, we can spin up
- 7:05anything that we want. We can have our
- 7:07own Postgres server just running in
- 7:08there and they have everything out of
- 7:10the box. It's just sources that we can
- 7:12connect. I'm going to show you that in a
- 7:13second and we can set up our CI/CD
- 7:16pipeline, all these fancy words. You
- 7:18don't really need to know it. You just
- 7:19have Coolify set up on your VPS, you
- 7:21have your cloud code, you have your idea
- 7:23and then just tell cloud code to do all
- 7:25of it for you. But then you just hit
- 7:27Coolify, you select it, you set up your
- 7:29root password, your SSH key to your
- 7:31computer and it will have access
- 7:33directly. So, once that is up and
- 7:35running, you will then have your VPS.
- 7:37If I go back to Hostinger, to my
- 7:39account, I can go in and manage my VPS.
- 7:42So, we can see it's running Ubuntu, it
- 7:44has CPU usage, you can see all the
- 7:45tracking, you can see the OS panel, you
- 7:48can do backup and monitoring. So, for
- 7:50only like $5 a month, you can add
- 7:52automatic daily backups, so your data is
- 7:55protected. It's going to run
- 7:57automatically every single day, you
- 7:58don't need to take care of that. If
- 8:00you're building out a lot of database,
- 8:01nothing worse than losing your data,
- 8:03especially if you have users on your
- 8:05platform. Even just if you're building
- 8:07your own personalized software systems.
- 8:09I'm building tons of personalized
- 8:11software systems as I just showed you
- 8:12here for my own personal use, but it's
- 8:15still very important to have backups.
- 8:18You can have APIs, you can connect to it
- 8:19with API, you can even hook up Cloud
- 8:21Code, so you can see connect your IDEs
- 8:23to Hosting or MCP, Cloud Code, Cursor,
- 8:26WinSurf, JetBrains. All you have to do
- 8:28is just enter your configurations with
- 8:30your API key, and then your IDE Cloud
- 8:32Code can talk to Hosting or directly,
- 8:35set up the VPS, set up all the
- 8:36configurations. I just prefer to do it
- 8:38myself because again, I can just ask
- 8:40Cloud Code, what should I do? What what
- 8:42should I click on? And it's going to
- 8:44tell you.
- 8:45So, once we have it up and running, we
- 8:46can see that I have my IP. This is cool
- 8:49if I had that I'm hosting on my VPS
- 8:51already. So, this is just my tool for
- 8:53handling my deployment of the software
- 8:56systems.
- 8:57So, let's go and I'll take a look at the
- 8:58projects. This is my first project. I
- 9:00don't have any resources in here, but
- 9:02this is where we're going to deploy our
- 9:04learning platform. So, we can go and add
- 9:06a resource. You can see a public
- 9:08repository, private repository. You can
- 9:11have Docker Compose files, which we're
- 9:12going to use. You can also just have a
- 9:13public repository. PostgreSQL database,
- 9:18Redis, KDB,
- 9:20MongoDB, ClickHouse.
- 9:23It's just a single click. You can just
- 9:24post grace, what post grace version you
- 9:26want to use, post grace 18. You set up
- 9:29all your name, your username, your
- 9:31password.
- 9:33That's it. Then you have a
- 9:36database hosted on the internet. You can
- 9:38connect to it. You can start storing
- 9:39data in there, create your tables, and
- 9:41that's all you need. This is much, much
- 9:44easier, much, much cheaper than using
- 9:46Azure and all other all these other
- 9:48tools, and it's just so much easier to
- 9:49get started with, and everything is
- 9:52free. This is open source, and you just
- 9:53need to have your $5 VPS. If you're
- 9:56interested in VPS, like use my link down
- 9:58in the description.
- 10:00It's very cool. It's very easy to get
- 10:02started with. I'm going to create a ton
- 10:03more videos cuz this is how I'm hosting
- 10:05my app and getting into production fast.
- 10:09So, if you just take a look at some of
- 10:10the other sources before jumping back
- 10:11into our code, I have other videos going
- 10:14over all these different things as well.
- 10:16You can also set up API keys to Coolify
- 10:18so it has an API. So, Cloud Code, if you
- 10:21give it the API key, it can do all the
- 10:23setup in here for you. It can set up the
- 10:26S3 storages. You can connect S3 storages
- 10:28for backups as well yourself. If You can
- 10:30also just do it with Hostinger. It's
- 10:32roughly the same cost, and it's just a
- 10:34one-click. You can set up your
- 10:35environmental variables, all your
- 10:37sources, connect GitHub, your CI/CD
- 10:39pipeline through the Coolify API. So,
- 10:41everything that you're doing here could
- 10:43also just be that you have Cloud Code
- 10:45say that, "Okay, on my Coolify server, I
- 10:47want you to spin up a new
- 10:50database, connect to it, and that's
- 10:53pretty much everything that we need."
- 10:56This is very cool. You can see all the
- 10:57different sources, the available
- 10:59services.
- 11:01They have everything that you can pretty
- 11:02pretty much think about and that you
- 11:04would need for any software system that
- 11:07you're building. Like you can just skim
- 11:08through it. It's pretty cool, and it's
- 11:10just a single click. Let's go back into
- 11:13our app again. It's still building it
- 11:15out. We can see we have our back end. We
- 11:17have our deploy. We have our front end.
- 11:18We have an environmental variable
- 11:21example. So, we need to have our
- 11:22Postgres database. We need to have our
- 11:24back end.
- 11:26We have some secret keys, and we
- 11:27probably also have our Anthropic API key
- 11:29that that to hook up.
- 11:31Some Google OAuth.
- 11:33Let's just have log in and log out just
- 11:35to simplify it a bit. But it's pretty
- 11:37much just going to run here for like 20,
- 11:3930 minutes, build out our full app.
- 11:42Cloud code has been so good now at just
- 11:43being authentic, like really just
- 11:45getting things done. And while it's
- 11:47generating, you can go grab a coffee.
- 11:49You could even spin this up in Cloud
- 11:51Code's desktop app, but this is how I'm
- 11:53building apps, how I'm getting fast into
- 11:54production. We're not talking about
- 11:56building enterprise systems, but we're
- 11:58talking about building out your own
- 12:00ideas, building out personalized
- 12:01software that can make your day and also
- 12:04your life easier and more efficient.
- 12:07But it's also just going in this
- 12:08direction where it becomes much, much
- 12:10easier to do. And if you're really
- 12:12experienced software engineer,
- 12:14you can build like really, really strong
- 12:17apps which you couldn't do before. You
- 12:20would probably need like a team of
- 12:22three, four, five people. Now, as a
- 12:24single person, you can do all that work.
- 12:27So, let's just let it run here. Then
- 12:29we're going to deploy it straight
- 12:30[snorts] after. That's all we have to
- 12:32do. We can tell it to the port to
- 12:33GitHub. We pull it from GitHub, deploy
- 12:35it, and we can take a look at our
- 12:37domain. Okay, so now it has generated
- 12:39the first iteration. So, we can see we
- 12:41have our back end FastAPI. We have our
- 12:43database connection up and running with
- 12:45an email and password. We have our front
- 12:47end up and running with Vite, React,
- 12:49Tailwind. So, it's a pretty good front
- 12:51end stack. And we have Docker Compose
- 12:53and Coolify production, so traffic
- 12:55label, health checks, auto migration,
- 12:57Nginx for the SPA. All we have to do is
- 13:00pretty much just run it. So, I've
- 13:02created this environmental example. All
- 13:04I have to do is just drop in my OpenAI
- 13:06API key.
- 13:08And let's just rename this to only.env.
- 13:11That's everything that we need to do.
- 13:13The rest is in here, the model that
- 13:15we're using. We're not going to use
- 13:17Google OAuth yet, but it's ready to use
- 13:19that as well. You just need to set it
- 13:20up. It will be a bit more configuration.
- 13:22And we have our Vite front end URL. The
- 13:25only thing that we have to do is pretty
- 13:27much just go into our terminal. We can
- 13:29open up a new terminal.
- 13:32And we can docker compose build it.
- 13:40Docker compose up build. It's going to
- 13:42build our post grace database. It's
- 13:44going to set up our front end and also
- 13:46our back end. So while it's actually
- 13:48just building there, let's just have it
- 13:49push it to GitHub. I want to push this
- 13:52code base to GitHub so we can deploy it
- 13:54to Coolify as well.
- 13:59There we go. It's just going to create a
- 14:01new repo to GitHub and then we can go
- 14:03inside our Coolify instance which we're
- 14:05hosting on our Hostinger VPS. And that's
- 14:08pretty much everything that we have to
- 14:10do. It's setting up the front end now.
- 14:12It's around 2 minutes for setting up our
- 14:14back end, our front end.
- 14:16Now the service back end front end is
- 14:18running. It's built. It's created. There
- 14:20we go. Now it's pretty much just
- 14:22running. So we got an error here.
- 14:24Something's driver failed for our your
- 14:26learning platform. Let's just ask it
- 14:29what is going on here.
- 14:41There we go. It's logged in to my
- 14:42GitHub.
- 14:44It's going to create and push the files.
- 14:47It's going to commit it first and then
- 14:48it's going to push the files to our
- 14:50GitHub repository. It will probably give
- 14:51us the link and we can open it up and
- 14:53take a look at it. This will be public
- 14:55and you can go in and take a look at it
- 14:57as well. So here you can see
- 14:59uh I'll just
- 15:02take this one.
- 15:06It's just going to commit it to the repo
- 15:08learning platform.
- 15:11Let's restart the docker compose. So
- 15:12docker compose down.
- 15:14I had to do some fixes with some of the
- 15:16ports.
- 15:17Docker compose up again. Let's see. Now
- 15:19it's going to create our front end.
- 15:22And it should be running now.
- 15:26I think we're good to go. Should be
- 15:28There we go. We got our front-end
- 15:30running. Now we have our login screen.
- 15:32We still got an error here that it might
- 15:34have to go through and fix. There's like
- 15:36a database learner does not exist. So it
- 15:38probably hasn't created all these users
- 15:41and also
- 15:43the initial course curriculum. Let's
- 15:45just go in there.
- 15:47And while we do that, we have now
- 15:49created our learning platform link. I'm
- 15:52going to open it up.
- 15:56And there we go. We have our learning
- 15:57platform. Everything is committed. We
- 15:58have our readme file. We have the full
- 16:00tech stack at the top where we have
- 16:02front-end, back-end, DB, LLM, and also
- 16:05how we deploy it with Docker Compose to
- 16:07Coolify on Hostinger. This is pretty
- 16:09much what I'm doing for all my software
- 16:11systems out there. I also just have a
- 16:12template that I'm using. If I have some
- 16:14specific things that I need to use, I
- 16:16just have a markdown file with the tech
- 16:18stack and I can go in there and change a
- 16:19few things. Then I usually just attach
- 16:21that to my
- 16:24prompt where I'm actually setting up the
- 16:26full system from scratch. But that's
- 16:28more a bit more like what you like to
- 16:30use the tech stack. You can just do
- 16:31this. It's going to give you pretty much
- 16:33the same results. But if I have want to
- 16:34have multiple services running, the same
- 16:37brand style, all these things in the
- 16:39apps, you can have your own custom like
- 16:41markdown file that you're just giving it
- 16:43when you're building out a new app and
- 16:44you can spin up apps in the exact same
- 16:47style with the same tech stack as all
- 16:50your other services. So everything is
- 16:52ready here. You can go and access it now
- 16:53on my GitHub and we can also start set
- 16:55it up on Hostinger while we're fixing
- 16:58the bugs in cloud code which is just
- 17:00running in the background. So let's go
- 17:01back to Coolify. We have our project at
- 17:03the top. Let's just go with a public
- 17:05repository. We need the repository URL.
- 17:09Let's go back into the code.
- 17:11I'm going to copy this one.
- 17:14There we go. We check the repository. We
- 17:16have the main. We can have the build
- 17:17pack but the mail build pack we're going
- 17:19to use. You can also just use a static
- 17:20file. If you have a HTML page that you
- 17:22want to host it with your own
- 17:25could be your own personalized website.
- 17:28You can just have an HTML page. You host
- 17:29that.
- 17:31And that's much cooler than any CV out
- 17:32there. That's another cool example that
- 17:34you can spin up with Cloud Code in very,
- 17:36very little time.
- 17:39Let's use Docker Compose. So, we have
- 17:40our base directory. We have our Docker
- 17:42Compose YAML file. I even think this one
- 17:45here. If we go back, we have our Docker
- 17:46Compose Coolify. dot YAML. Let's just
- 17:49make sure that we use that one.
- 17:52And it's just in the root directory. We
- 17:54just hit continue. And let's see if we
- 17:56are able to deploy the app. So, Docker
- 17:59Compose file has been loaded.
- 18:02It should be able to find it. Once you
- 18:04have set up your app, you can see all
- 18:05the environmental variables. If you want
- 18:07to add them in here, we need to add our
- 18:09Open AI API key in here. You can set up
- 18:12the
- 18:13API from Coolify. Give it the API key,
- 18:15and it can do all of it from the
- 18:16terminal as well. But here, we only need
- 18:18to set up our Open AI API key. So, you
- 18:21can have rollbacks. You can preview the
- 18:23deployments that you're doing. So, here
- 18:25we can go inside our deployment. Nothing
- 18:27is running right now. We can see the
- 18:28logs. You can access the terminal.
- 18:31Everything is available here.
- 18:34So, let's just try to hit deploy. It's
- 18:35going to start a deployment in progress.
- 18:38It's going to run it in the exact same
- 18:40way as we just did locally with our
- 18:42Docker Compose file. Now, it's going to
- 18:44pull and build the required images.
- 18:46Do the exact same thing as local. But it
- 18:48now it's going to host it on the
- 18:49internet. So, you can always just track
- 18:51the progress of your
- 18:53deployment. We need to just make sure
- 18:55that it works locally first. And then we
- 18:57just push it, and it's going to work in
- 18:59the exact same way in our deployed app.
- 19:05So, we need to rebuild it now.
- 19:11You could even just ask Cloud Code to do
- 19:13all these steps here. I just wanted to
- 19:15show you guys running it. So, fill in
- 19:17for me, login page, and you should be
- 19:19in. New course, type any topic, and we
- 19:21should be good to go. It's all just
- 19:23opening it up in here.
- 19:26So, we have a demo account. You can also
- 19:28just create an account.
- 19:31Go into our Chrome.
- 19:32So, just fill in for me. We log in. Now,
- 19:35we have our platform. We have a new
- 19:36course. We have the leaderboard. We have
- 19:38our learning tab. So, let's go in and
- 19:39create in our first course.
- 19:41Let's just call it neural networks
- 19:47and LLMs.
- 19:48We're going to go with intermediate. We
- 19:51can have
- 19:52some examples, investing 101, Latin
- 19:54American history. Let's just generate
- 19:56the course. It's going to build out the
- 19:57curriculum. So, it takes probably like a
- 19:59minute or so.
- 20:01We have the XP system. We have the
- 20:02energy system. We have the heart system.
- 20:05So, pretty much the exact same style as
- 20:06Duolingo. Let's see how it creates the
- 20:08course. So, now it's going to create all
- 20:09the course content. With a large
- 20:11language model, you can just specify any
- 20:13topic that you want to learn instead of
- 20:15just learning languages or specific
- 20:16things on Duolingo. Now, you can just
- 20:19spin it up here.
- 20:22We can see all the API calls coming
- 20:23through from our courses.
- 20:26>> [cough]
- 20:27>> We're using GPT 5.4
- 20:30at the timestamps. So, now I want to
- 20:32host it on our own custom domain as
- 20:33well. So, we can connect
- 20:35everything together. So, all I have to
- 20:37do is to go into my provider. I have all
- 20:40these different domains. Let me just
- 20:41take this one. We just have to go into
- 20:43the DNS settings and add our records.
- 20:47So, we go inside the DNS records. We
- 20:49need to add new A
- 20:52A records. And if we just go back into
- 20:54our code,
- 20:55what
- 20:56should
- 20:58I add to my
- 21:00DNS provider?
- 21:11>> There we go.
- 21:14And also, the only reason why it didn't
- 21:16work in here was because I haven't
- 21:17connected the environmental variables.
- 21:19So, I had just had to set up the
- 21:21environmental variables and it was now
- 21:23deploying and we had a successful run.
- 21:25But, to be able to access the app, I
- 21:27will just set it up on our own custom
- 21:28domain and everything should be good to
- 21:30go. All because I need to add that
- 21:32inside our
- 21:34configuration for deployment and our
- 21:36environmental variables.
- 21:39So, let's go back in here.
- 21:41All we have to do
- 21:43is just go in and specify these things
- 21:44in Coolify. We need to have learn and
- 21:46then API.learn. So, this will just be
- 21:49our host and we have our value.
- 21:54So, I'll just take this value here
- 21:56and we just have it at learn.
- 22:02This is going to be our host. We have
- 22:03our IP.
- 22:07And here we can just go with default.
- 22:09We're going to create the record. We
- 22:11will create one more record and that's
- 22:12just going to be our API, API.learn. So,
- 22:14this is where our API will will will
- 22:16run. We have our there and now we have
- 22:18set up our DNS setting. So, these are
- 22:20the two A A records that we have added.
- 22:22Now, we can then access it on learn
- 22:25.mydomain and this is pretty much the
- 22:27domain that we're going to set up.
- 22:30It's just going to map it to that. So,
- 22:32we have API.learn and just learn
- 22:35.mydomain in here and this is
- 22:37agent-to-agent.company.
- 22:40So, if you don't specify like learn in
- 22:42front, we can also just don't do that
- 22:43and we can just have nothing here and IP
- 22:46then just going to map to that.
- 22:49So, now we have agent-to-agent.company.
- 22:51We can access on all these three URLs
- 22:53and our API is going to run on this one.
- 22:57So, yeah. There we go. Now, we just have
- 22:59to wait for it. While we're doing that,
- 23:01we just need to add all these things to
- 23:03our Coolify platform. I've already done
- 23:05that. So, let me just give the agent
- 23:08that this is the API.
- 23:11This is our domain connected.
- 23:18We've added all that. The only one that
- 23:19we need is this
- 23:21beta URL on the API.
- 23:26So, we can act like this to only have
- 23:27API that learn. We don't even need that.
- 23:29We can just have API.
- 23:31So, API.
- 23:33We'll grab our IP.
- 23:37There we go. We're going to write
- 23:38>> [clears throat]
- 23:38>> that record. We will not have this
- 23:40learning record. We don't really need
- 23:41that. So, let's just delete that. Learn.
- 23:44Agent, maybe we can use that later on.
- 23:46So, we have these two.
- 23:48There we go. We've connected these.
- 23:50We give it to Cloud Code. Now, we just
- 23:52need to take our URL, throw that into
- 23:55our environmental variables on Coolify.
- 24:00Again, this is much easier if you have
- 24:02set it up like multiple times. I usually
- 24:03just have a script connecting it with
- 24:05the API key. That's much, much faster.
- 24:09But just to show you like step-by-step
- 24:11so you don't have to give it API key to
- 24:14Cloud Code and doing all that
- 24:16dangerous stuff now. Environmental
- 24:17variables.
- 24:19If you scroll down, we have our beta API
- 24:21URL.
- 24:22There we go. We update that one.
- 24:24We have all the rest running fine. Let's
- 24:27see if we needed to do one more. We have
- 24:29the domain.
- 24:36Domain, domain, domain.
- 24:38Let's add a new
- 24:40here.
- 24:41Domain.
- 24:43This is the value and we save it. Now,
- 24:45we should be good to go. We pretty much
- 24:47have everything connected. I think we
- 24:49should be able to deploy it. So, the app
- 24:50is going to run on this URL. We have the
- 24:52API documentation. We can log in with
- 24:55this demo for now.
- 24:58And just let me know when it's up and
- 24:59I'll give you a quick intro and sanity
- 25:00check.
- 25:02I think we are good to go now. Let's
- 25:04just try to redeploy it.
- 25:06And see if we are able to access on our
- 25:08URL. It's just going to take a second.
- 25:10So, it's just applying the latest
- 25:11configuration. It's deploying. We can go
- 25:13inside hosting again. They also have
- 25:14this vibe coding tool called Horizons,
- 25:16which is pretty cool as well. I just
- 25:18tried to do the exact same thing. So, we
- 25:19just want to build this Duolingo style
- 25:22learning app. So, we get the learning
- 25:23experiences, content style, the
- 25:25questions, quizzes, the gamified
- 25:27experience. And then this is just like a
- 25:29lovable V0 and so on. But, everything
- 25:32will just be hosted on Hostinger as
- 25:33well. And you have the chat interface
- 25:35where you can ask it to do anything.
- 25:37There are some integrations up at the
- 25:38top. But then it just asked some
- 25:40follow-up questions. How would you How
- 25:41should users input the topic? Should the
- 25:43app save user progress?
- 25:47It's just going to add a few follow-up
- 25:48questions, a user account system, a
- 25:50similar approach where it just saves it
- 25:51locally to their site. So, now we can
- 25:54see we have our login page. It's pretty
- 25:56much good to go. And then yes to a user
- 25:58account. So, we have the login and also
- 26:00sign up style. And now everything is
- 26:03pretty much just good to go. You can hit
- 26:04publish. It will become available. You
- 26:06can connect your custom domain in here
- 26:09as well. So, now it's just going to
- 26:11publish. You can test out the app here.
- 26:12You can edit the context, the code,
- 26:15data, all of it directly from the UI as
- 26:17well. So, you don't even need to spin up
- 26:19cloud code. You can use Horizons
- 26:20directly from Hostinger. I'm going to
- 26:22create more videos covering that. So,
- 26:23definitely stay tuned for this. It's
- 26:25just going to publish it now.
- 26:27And then it will be available in here.
- 26:29We can try to just go in and see. I have
- 26:32this website up and running. You can
- 26:34connect the domain directly. You can
- 26:35edit the website. But, this is the one
- 26:37is just getting published.
- 26:40This is very cool. You can also use it
- 26:42for this. Let's see if our other app has
- 26:44been
- 26:45deployed. Not yet. It is
- 26:47actually running.
- 26:48New container started. So, So, should be
- 26:50good to go. Now, we can just go in and
- 26:51add the links to our cool of five
- 26:54service.
- 26:55So, we go inside the configuration. Now,
- 26:57we scroll a bit down. I think it's up
- 26:59here. So, domains for the back end. Our
- 27:01back end is going to run on our API.
- 27:04agent-to-agent and this one here is
- 27:06going to run on this one. So, we save
- 27:08the configuration. You'll probably just
- 27:10have to
- 27:11rerun it again. So, yeah. Now, we have
- 27:14it running on our own custom domain
- 27:16agent-to-agent.company/login.
- 27:18We can just fill it out with a demo as
- 27:20we did locally. Let's log in and create
- 27:23a new course. So, we're just going to
- 27:24create the exact same one in here or
- 27:26maybe we can just take one of the other
- 27:28ones. So, let's do investing one-on-one.
- 27:30We're just going to create a beginner
- 27:32course. It's going to generate it and
- 27:33it's going to just going to take a bit.
- 27:35So, we have the courses. We have the
- 27:37leaderboards. Everything should be ready
- 27:39to go now. And now, we can see that it's
- 27:41done. We have our investing one-on-one
- 27:43beginner course. Just took around a
- 27:45minute. There we go. We have the full
- 27:47style where we can have the flow in the
- 27:49different units. We can go step-by-step
- 27:52in here. Let's just try to click saving
- 27:53and investing. It's going to load the
- 27:55sessions. Might just take a bit here the
- 27:58first time. There we go. Now, we have
- 28:00our course up and running. Saving versus
- 28:03investing. Identifying how saving and
- 28:04investing differ in purpose, risk, and
- 28:06expected growth. We have a minute lesson
- 28:08here. Saving and expect Saving and
- 28:10investing both help you prepare for
- 28:12future, but they serve different jobs.
- 28:14Saving is usually for short-term needs
- 28:15and safety, while investing is usually
- 28:17for longer-term goals. So, just gives
- 28:19you a minute lesson here and then it
- 28:20goes into what choice best describes
- 28:24saving.
- 28:25So, putting money into the assets that
- 28:27always go up quickly. Not really.
- 28:28Borrowing money to increase. Not really.
- 28:30Keeping money for safer near-term needs
- 28:33with lower growth.
- 28:35That's the best
- 28:36choice for saving. Just go to the next
- 28:38one. What is common reason people invest
- 28:40instead of only saving?
- 28:42To grow money
- 28:43more over time. To keep money available
- 28:45for tomorrow. Let's just take this one
- 28:48and we can see with nice investing aim
- 28:50for higher expected growth over time
- 28:51accepting more uncertainty in exchange.
- 28:54So, now we pretty much have our course
- 28:55it tracks it up here at the top. Here we
- 28:58have to complete it and fill it out, but
- 29:00this is pretty much just our first
- 29:02iteration of our app. You can build out
- 29:04whatever you want. You can do multiple
- 29:06iterations, but now we have the full
- 29:08pipeline up and running. And if we go
- 29:10back to Coolify, we can see everything
- 29:12is running. The domains are connected
- 29:14for a backend, it's connected for a
- 29:15frontend. That's the only thing that you
- 29:17need to add in here and then every time
- 29:20you push to the GitHub repository
- 29:23to the main branch, you can pretty much
- 29:25just go in and trigger the redeploy and
- 29:28you will have a new update on your app.
- 29:30That's all for this video here. Go ahead
- 29:32and check it out. Everything will be
- 29:33down in the description. Go and check it
- 29:35out. Make sure you set up this full
- 29:37system and also just understand how it
- 29:38works. So, Coolify, Hostinger, Cloud
- 29:40Code, that's all you need. Do a few
- 29:42iterations and then the whole process,
- 29:44the whole architecture and the tech
- 29:46stack that you're that you're using, how
- 29:47you're configuring Coolify, how you're
- 29:49configuring Hostinger, you can save that
- 29:51into a markdown file and you can use it
- 29:52across all your projects. I just wanted
- 29:54to show you guys how we can do each
- 29:56individual step so you can do it on your
- 29:58own and come up with your own markdown
- 30:00file, which I'm doing and then I can
- 30:01just do the exact same set set up in a
- 30:04few minutes when I'm creating new apps.
- 30:06So, that's how I'm hosting all the
- 30:07different apps that I have running. I'm
- 30:09going to do way more in the future, so
- 30:12definitely stay tuned for that. Hope you
- 30:13learn a ton. Hope to see you guys in one
- 30:15of the upcoming videos. Until then,
- 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.