In this complete step-by-step tutorial, I show you exactly how I used Antigravity AI IDE to generate a production-ready Dockerfile, then deployed my full-stack certificate website live using Coolify on a VPS — without touching complex server configs.
Whether you're a solo developer, freelancer, or building your startup, this is the FASTEST way to self-host your Node.js + React +MySQL/MongoDB application today.
━━━━━━━━━━━━━━━━━━━━━━━━━ 🤖 HOW ANTIGRAVITY AI HELPED: ━━━━━━━━━━━━━━━━━━━━━━━━━ ✅ Suggested the best hosting strategy (Docker-based) ✅ Auto-generated a production-ready Dockerfile for the MERN monorepo ✅ Explained every step — from VPS setup to going live ✅ Saved hours of manual DevOps configuration
━━━━━━━━━━━━━━━━━━━━━━━━━ 🛠️ WHAT YOU'LL LEARN: ━━━━━━━━━━━━━━━━━━━━━━━━━ → What is Docker & why it's the #1 way to deploy apps in 2025 → How to read and understand a Dockerfile line by line → How to pick the best budget VPS for your project → How to set up and navigate the Coolify dashboard → How to connect your GitHub repo directly to Coolify → How to add a database resource (MySQL) inside Coolify → How to configure environment variables for your project → How to manage your MySQL database from the terminal → How to verify your website is live and working ------------------------------------------------------------------------------------ 💸 Get All My YouTube Videos' Source Code for just ₹199! Grab Now - https://thapatechnical.shop/source-code
━━━━━━━━━━━━━━━━━━━━━━━━━ ⏱️ CHAPTERS: ━━━━━━━━━━━━━━━━━━━━━━━━━ 00:00 – Intro: Hosting MERN Stack with Coolify & Antigravity AI 02:55 – How to Host a Full-Stack App (The Right Way) 03:30 – Using Antigravity AI to Generate Hosting Strategy & Dockerfile 04:35 – Docker Explained — Theory Made Simple 06:30 – Breaking Down the Dockerfile Line by Line 09:35 – Connecting Your Project to GitHub 10:35 – Best VPS Pricing Options for Developers 12:00 – Understanding the VPS Dashboard 13:25 – Installing Coolify on Your VPS 14:10 – Creating a New Project in Coolify 14:50 – Adding a Database Resource (MySQL) in Coolify 16:05 – Adding Your GitHub Project to Coolify 18:20 – Final Deployment — Adding Your App in Coolify 20:40 – Setting Environment Variables for Your App 23:10 – Going Live — Checking Your Website in Browser 26:50 – Managing MySQL Database via Terminal 28:50 – How Antigravity AI Made This 10x Easier
AI Generated·May contain errors
Video Summary
AI Generated
This video provides a comprehensive guide on building and hosting a full-stack application using the Antigravity IDE and Coolify on a VPS. Using a certificate generation system as an example, the tutorial covers the entire pipeline from rapid local development and Dockerization to cloud deployment, environment configuration, and final verification.
In this video, I will tell you
This full-stack application that is shown here
How can you host a live stream in just five minutes?
Viddhi Help Ope Antigravity ID A
Viddhi Help Op A
The code will give you that only once.
Like it's ready in just 10 minutes for you
But in 10 minutes, there are so many things to do
He's always there, always needing to be tested.
It keeps looking at that one thing all the time.
There's a lot left over.
It won't become a spot here.
You will reach there in 2-3 hours.
You will surely create a fully flashed simple pull-to-refresh stack application, won't you?
This is very important.
What is this that has come into your mind?
Tell me, brother
Codifier is an IT institute.
Right now, let's also start services here—this is my own company.
We have live classes here.
Joined live classes
You'll have to give the HUME certificate at the end, right?
to wo certificate
We provide this here in a timely manner.
Whoever is left will give you a certificate.
Does it have any unique ID or anything?
We cannot verify it.
but to make it genuine, taaki aap kahi company me
You show the certificate
and there, we will assign it an ID in a systematic way
You can download it, can't you?
Here you can see the link, which you can click on.
When you click the USS link
The link for Philal is not activated yet because
I will host it again unnoticed from the database today.
It will happen to you.
if you click on that link now, Phil will
We're talking about this link.
Go there and if you copy this credential, you
and just paste it here in this manner
to boom, guys, see
It will show you the way through this darkness.
How awesome is MATLAB, it's like an institute itself.
like you know, like an initiative is being taken
We have put so much effort into this certificate as well.
in case you've forgotten
You can download it easily.
You can share this with your friends.
All the details here will be yours.
Who authorized this? Who issued the authorization?
Everything will stay right here.
and it also has an admin panel
Here, everything including the certificate is available.
You can override it for him.
You can do so many things here.
That's a very awesome project.
and believe me, antigravity IDE, ne
Bro, I need it within two and a half hours
Everything is ready for the banquet
and the best part
I said, come on, brother, let's host this now.
I want to host this.
I knew how to host.
Because I've shown it to you before already
if you want to do a full stack application
on a VPS with the help of Coolify
You can host it very comfortably.
But brother, I've just realized this here
How can I make this better?
I asked him directly from CC
It was said that Docker files are created.
I knew it
after creating Docker files
We don't have two resources.
My work will be done just from one resource.
Front end and back end are both inside one.
Yeah, guys, when I found out
I told the resource, "Come on, let's try."
First of all, you can see it for yourself
full stack application
and here MySQL is being used
You can clearly see it here
the backend, which is in a separate directory
And our frontend is in a separate directory.
mostly aap is type of architecture
you call it a decoupled architecture
where both are communicating with each other using the API
when I told him this
Alright, create a Dockerfile for me from scratch.
What have they done here with anti-gravity?
You can see it here: docker-compose.yml
You created a file for me
you must orchestrate this
You can make this into a configuration file.
Theke and Ye
They've placed it at your root level.
Then inside the backend, we have one more Dockerfile.
Could you please provide the build script you'd like me to create?
Setup instructions are there, right?
and then we have one more Dockerfile
in our frontend as well
Then again, this is also the same, this is yours.
You can create a build script for this.
the setup instructions that follow
It will be useful to build an image, and when that image is
It will run, and its instance will be within your container.
He will tie it and these stars will be his
Your journey will begin as you start walking.
What is it? I'll tell you, but first
I'm just a little bit from the burst of the bad phatak
Let me explain to you the concept of this container.
Then I'll host you and tell you all about it.
It is very useful for APIs.
Otherwise, if you wish to ignore it directly, you may do so.
I have directly given the timeline.
You can go there and check it out.
to here you clearly
You can see I've kept all the steps for you.
so that it becomes easy here
What is the Dockerfile doing?
This is the Dockerfile that was at your very root level.
Do you remember what basically happens?
First of all, when you log in to Qlify application
You add it there, don't you?
That's Docker, the first one
It reads your file.
We have also provided the setup instructions for it.
when this is read, here we have clearly
It was instructed that we have a Dockerfile.
You build this Dockerfile
and if it gets built, the image
It will be created, you can see it right here
Image creation is taking place, and once that image
It's blocked; please run the image.
Then it runs,_USERS image, and once that image
When it runs hot, the instance of it does too.
You are the container of us.
And once again, these containers have been created.
After that, once again, this one
Compose ensure basically back again from
The file you have, make sure
Hey brother, that's exactly what I told you
The image has been built from the Dockerfile.
The main container is running separately.
But I've already created a front-end image.
Your backend image is ready.
Hi there
to the file you have now, make sure
Karega, both of both
Let's communicate well together.
car sales and because of this
Docker Compose file and its
We have written the instructions.
You'll just need one resource, that's all.
and you are taking great care that
How do the front end and back end communicate with each other?
Basically, this is yours.
That's the concept, I hope you like it big and bold.
You must have understood by now that if you suddenly go in-depth
If you want me to explain, let me know in the comment section.
But it's already clear, right?
What is Docker Compose, let me show you
The front end is here, this is the back end.
Here it is, the whole thing we have
Your environment variables are also being stored as a subset.
How to use which network for what
I need to do it, and all the volumes of it are here
mention Hai and Ye individually
In the backend, we have different
It's creating Docker files, that's all.
There is only one main reason, someone's backend
Your approach runs in a completely different way.
The code for the front end, we need to keep it separate
You have to run both ways, it's necessary.
different environment node
It's your own environment, brother, run it at runtime
I need an environment to convert it in JavaScript
You can see, can't you?
Alright, let me tell you this for you
What was said, just a simple one, just a quick glance upwards
Bro, I need the version of Node.js
Hey, is this your working directory?
Just create this, what are we saying?
the backend code we have here
The package.json file is here
then we have this asterisk
Copy the poop
Is this file yours?
basically inside the working directory
After you have copied it
He has to run it.
A necessary dependency exists.
for our production
Install it for him.
Dependency copied by me
However many files remain with you
Whatever there is, it's for everyone.
Copy it.
Hey, look at this
Then what am I doing with this particular line
We are uploading the certificate.
We are creating a directory, just like that.
Upload it here.
This port number, we are exposing it.
and user node basically
The non-root user俐jj is shifting there.
is switching, and then at the end me
npm start is from tarke
You are looking at this setup instruction.
what we are providing to you in Docker
and you wouldn't say so either
after the container, where
It has run out.
Where it is running hot there as it is
That's because everything is already here beforehand.
npm start works the same way normally
You start, and same
when we do it after the frontend
If the front end is the same for me too, then there isn't anything different at all.
The version of Node.js for this app is to copy this package
Here, take it, run it.
And copy it right here
Here there is a different queue.
Here is the React application
You'll have to build it yourself.
if you build it
You are given a dist folder.
and that's the dist folder only
I don't need to do anything with all these codes here.
that dist folder inside it
You are running this on the nginx web server
Just run it for him.
We are exposing this port, and that's it.
This task is being carried out in this manner here.
Their environment is different, that's why we need these different files.
You will create your own image.
It will run my container and that container
Will the Docker Compose file take care of it?
Let's communicate well together.
handling environment variables
Let it run on MATLAB
That's the rest of the code
There's no need for Karni, because
This is your guys' hosting video.
But I said 5 minutes
I know I took too much, but
You must surely understand even that much, right?
Bro, he's directly giving you anything you want.
you just without understanding if
If you're going to take the card, then it'll be a problem for you, guys.
Boss, testing is definitely necessary.
Make sure whatever
What are you working on? Latest version
Yes or no?
Is it as you wished?
context.md
gemini.md
Do you need styling?
What functionalities do you need?
What is and what is not
You must mention everything to him.
He will make you equal to him.
So much has already happened.
What needs to be done now?
The first step was this.
Create a Dockerfile
I created Docker.
And then, after that, create a rap for you and let it go
Yeah, to GitHub, see you like GS
create
Holding back, just barely, just barely
You have come this far
Your GitHub is ready, sir.
Dockerfile
Where do you have to go?
You will have to go to VPS.
By the way, did you buy the VPS?
If you don't do it, the link will be invalid.
or comment section main de dunga
If you click on it, you'll get the best discounted price
And from above came a special coupon code
But before that
KBM 1 is 1, 2 is 2, 4 is 4, that's all
I highly recommend going with the first one.
Because this might cost you a bit more
and for the initial stage, I guess
This will do the job well and comfortably for you.
It has a CPU and 4GB of RAM.
And in this, you can do anything.
As many AI automations there are
You can do everything here.
You will select this plan.
If selected, you will be following this method.
You will come to the UI page
Where their add to cart page is
24 mynas, one myna, and 12 mynas as well
Alright
Check the price, guys
It is no less than the rebels.
You'll feel very close to them when you see the rebels awaken.
And easier for you
special coupon code where you will get
Extra 10% discount on existing discount
Look at this apple, so cheap in price
You are now receiving BPS for a full year.
You can install and keep the AI here on P.
That will do your work for you
You can do Klein's project differently.
You can apply for it and get it approved.
You can earn lakhs with Gais.
If you have this passion, you will accomplish a great deal.
شار्ट के एक बार इतना हो जाता है तो आपका डैशबोर्ड कुछ इस तरह के दिखाई देगा
What should you do first?
When you arrive at the installation
So it is very clearly here
And just a little while ago, I showed you
And here, when we were doing the Vipassana retreat with Mrs. Vipassana
We select Ubuntu 99% of the time.
And somewhere here they must have written it down.
Just do it once, that's all.
So Gais, after that, simple
You will come with this Turkish one.
You can see it here
Your dashboard will appear to you in this Turkish style
Here is every URL you received
Keep it noted down.
So first of all, you
Basic won't show you all of this here.
So what do we need to do here now?
We need to post this application of ours.
So here you can see that
I created the project
Here you can see many difficult things.
We have the option to add a new project.
Now you can give any name here
As I have written
certificate
I've just written this to Filal
I am clicking continue.
In this way
I am about to start a new project now.
I will go to Add Resources here.
So first of all, when you do anything
You're doing full stack.
So, set up the database in it.
If you use PostgreSQL
Click on this MongoDB
I'm using MySQL, so I've been using MySQL
Clicked
the moment I clicked on MySQL make sure
The password for root in this case
This is the MySQL username.
and this is the name of your database, all of this is yours
Keep this noted somewhere, as you'll need it soon.
Alright
and sorry, root is not needed
go with the normal user password so that no one else knows the password either
If we go, the problem won't get worse.
and simple, just click on it to start
That's it, meaning MySQL
So you can see that our database has already started up.
I mean, there's no tension about the conclusion.
Here you can see it's running
Just copy and keep it.
A reminder for you here — remember one thing
The part that is showing here is the gas.
This is your database
They are hosts; its name is
Remember this
Your normal user is this
Your name is your password
Here is the database
Here, if you look, the initial database by default
What have they kept?
We'll keep the default as is, so this chart
It seems to be falling on the roof.
I'm done with this; I'm moving to production.
Database setup has been completed.
Now what the hell have I done? Just a single resource, you can't do anything about it.
Once upon a time, here in new
You can see it at the top.
Click here
Look here
Now I need a git hub, that public one
This private go with him
Private Repo Git Hub App
Because here, the automatic tension is this only.
It's done, but next time
If I make some changes, the meaning won't make sense anymore.
If you click on this, you'll give any name you want.
Here, as your institute
Spouse, my codifier is you, right?
I'll continue it like this in the C language
Alright, I've just started continuing
Here is an automation installation
This is the most important thing, register now
I have my password written down
But we'll keep it as you keep your library.
I have my password written down
So you can see them clearly
I've given access to this thing like this.
This is the automation.
You must have heard of it, the Bus Khattam.
Click here
When you come to this, select only the one with "select"
Whatever you click on
The file will be here.
Add to Cart React
I'll just select this one and install it.
So the moment I saw, by the way
This is not my certificate; I did not make this.
I just told you the steps because of my
The GitHub with the certificate is already there
I'm deleting this now.
And by the way, if you delete
If you have to do it, there is also a way to do it.
Something like this
So you've seen that recently I've just
I had installed a GitHub repo.
I have also deleted it.
I deleted it because of him.
Because the certificate that I have
The GitHub repository that I needed
Isn't this the one?
I have already installed it here.
I'm now on this one
If I click back, you'll see
The one that is appearing like this
This is that project
Here is the GitHub repo I need
How was it a little while ago?
You can install it; I've shown you the process.
When you install it
You will see it right here.
Next time, it's fine when you come back
Go to the dashboard and when you return to it
The most important
Here it is to check whether it's a
main and a master branch
Is your branch main or master?
The second one is the build pack
Here, you have this Docker
You must select what is visible here.
Docker Compose in buildpacks
You have to select him.
In our file, this one here
compose file that has been created
If you look
It's .yml
but here we have YAML
So, I'll remove the 'a' in this manner
Alright, if you have a YAML file
So leave it as it is but
I said, "Look at this one here."
What was said in the image?
Docker, which is our Docker
It reads the compose file first.
Where will it read from if the file name itself is wrong?
Is it not the same one?
You need to select docker compose.
And then click the Continue button.
This is it, your work is done.
Look here, you'll see it like this
If this code is visible to you here
Here is your domain
Hey, if you want, I can auto-generate it.
Here you have a domain
A temporary domain will be obtained
This is your front end domain. This is your back end domain.
This is the beauty, meaning just one
resource and your work is done before this
The one who qualifies me for front end
A separate resource had to be created.
A separate backend had to be created.
If you had to go into the memory build and change the name
I had to write "dist" in what?
Then I had to make the React one static.
There's nothing to do here at all.
This was made automatic.
I will show you a link to it.
Now, just save it once.
Once you have saved it
It will come on environment variables
This is the most important thing.
Here, I have written down the environment variables.
Alright
So I do a job
I'm adding the environment variables quickly.
So first of all, this heel is what you're showing.
Click on the heel
User of the database
If I remember correctly, I've already told you well.
User is our MySQL
There
The second one is your database name.
If you remember the name of the database
You can keep anything you want.
If it bothers you
Our admin password there
This is another one left behind.
By the way, they
I will tell you.
This is what I'm copying this to
Here, paste it
I have become so tired of this.
All of this is for the user
Name, Password, Host, Secret, Email
The password has been changed.
Come to the usage Jainal
This is your backend
By the way, you came here to do this S-Ad?
State P.S.
This is your backend.
On our code
Whenever you connect to any database
When you come from this front end
You will call the backend
Yeah, so brother, we need the API, right?
You're right, how do we make a call?
You're understanding it, whatever it may be
Copy this
Come to environment variables, backend
It will be here.
Nothing to do, just go on general
Click the set button once, okay
Nothing to do, just do this much, I've already said so
It's just a five-minute task and deploy.
It will just take a little more time.
And your live host is over
You can see it running
I'm running on configuration.
Alright, I'm off to production.
I said no
That's the very resource.
Being a backend is different.
Front-end separate and data waste
Done, no need to do anything.
Done, one second
Your website is now live here.
Just a little bit in this starting
It will show you such things once or twice
It's already live, check it out
Look, it's gone live
will become insecure, SSL will fix itself
It will become added in it.
admin at the rate
codifier.com
Look, this
It will take a little time to start.
Your communicating with each other
Properly, in case it still feels like
Something above or below is bothering you, isn't it?
It's happening; what can you do?
You are here
We have deployment.
So success is ours, we have these locks
This is your front-end.
Here we can clearly see that
My database is already properly connected.
We are not under any tension.
Just take a good look at it once.
What am I doing?
I've already set up my sub-domain.
You can see it
Come back to the configuration.
It's okay, whatever it is, it's fine now.
Look at this
So, Gais, you can see me
That one has already passed for us.
Who does it seem to be here like this?
Now it at least works
Whether or not it is not
You have to look at so many things.
It is showing here
I walk here.
I have stood before you.
You can download it if you want.
Just look here
Click on this link here
Verification failed
No one has this name, that's the first thing.
One second
On the website
Alright, no problem.
I will update it.
We can verify it.
This is credential
There are four there.
Five is written here
The new certificate of Vissal
It will start on this credential.
This will be his ID.
That's it, and one more thing
I'll show it to you right away.
A little bit of
I'll tell you.
I'm on my way to the database.
It is a terminal.
Our
The user is MySQL.
Say it or don't say it?
And the password is this
Now connect or not
Do you remember our user mysql?
Now, look here
Do you remember?
so databases
This is exactly what I was showing you.
Do you remember when we talked about the name of the database?
I wrote "default" there.
This is your default
Look at this default one
Inside, we have admins, and then we have
certificate
table
admins, take a look, admin
at the rate codify.com and the one I had qwerty
I wrote it, do you remember? Look here.
It means everything here
And once again we have a table.
certificates
Check this out, Vishal — full stack 6-month program
I meant to show that
Whatever it is, I mean, like this
No, everything you need is right here.
Here is everything you need, right here.
override even though there is no need for it
No, I just wanted to tell you that.
This is a full stack application, a month stack.
What is it, relax like you
What does it say if you have empty
Domain, so add it.
Set the environment variable, don't do anything else.
It's all done right here, isn't it?
So, guys, let me know in the comment section
How did you find this video where we first
There were two resources, now one single resource
I have also shown you how your
Anti-gravity is helping with all this stuff, that's all
You don't need to write anything here.
Tell me whatever you think about this here.
It will write everything for you, it will create everything.
Once you're stuck, no matter how, just push through the project
You'll do it, right... if you liked the video, please
Will like, friends, full of barbers' ser
And the next target is at a large subscriber
And if you haven't subscribed yet, please do so now
So, see you in the next video
Tilna Gaij was corrected