Direct Deployment
Approach 1 - Vercel (Recommended)
Vercel has a very generous free plan, so you will be able to host this app for free unless you get millions of users.
-
Create a Github account if you don't have one already.
-
Create a free Vercel account at https://vercel.com/signup and connect your github account with it.
-
Click on the
Deploy
button above.-
Vercel will ask you to
Create Git Repository
, enter any suitable name click onCreate
. -
(Optional) You can deselect the
Create private Git Repository
option if you want your fork to be visible to others. -
Now under the
Configure Project
section enter the following environment variables:-
MONGODB_URI
- The MongoDB connection string created previously. -
CONTACT_WEBHOOK
- The Discord webhook URL for the contact form created previously. -
URL_REPORT_WEBHOOK
- The Discord webhook URL for the URL report form created previously.
-
-
Click on
Deploy
and wait for the deployment to finish. -
Once the deployment is finished, you will get a URL where your app is deployed, it should look something like
https://<random-words>.vercel.app
. -
Congratulations 🎉 your app have successfully been deployed. You can also connect a custom domain for free on vercel.
-
The MONGODB_URI
, CONTACT_WEBHOOK
, and URL_REPORT_WEBHOOK
environment
variables are sensitive and should not be shared with anyone. The values of these environment
variables were generated in the previous steps.
In case you face any issues during the deployment process, feel free to ask for help on our discord server.
Approach 2 - Railway
Railway offers you $5 of credit once you verify your account, which is enough to run the app for around 5-7 months.
-
Login to your Railway account if you have one, otherwise create one here.
-
If you are signing up, then verify your account by clicking the link in the email Railway sends you.
-
If you created your account with an email, then to verify your account further, go to your account, then plans and verify your account with a GitHub account.
-
-
Click on the
Deploy on Railway
button above. -
If a
Configure
button is displayed, click on it and allow Railway to access your GitHub account. -
Now Render will ask you to fill
Environment Variables
. Enter the following environment variables:-
MONGODB_URI
- The MongoDB connection string created previously. -
CONTACT_WEBHOOK
- The Discord webhook URL for the contact form created previously. -
URL_REPORT_WEBHOOK
- The Discord webhook URL for the URL report form created previously.
-
-
The
Deploy
button at the bottom of the template should be active, click on it. -
Once the deployment is finished, copy the URL from the
Deployments
tab, it should look something likehttps://<random-words>.up.railway.app
. -
Upon visiting the URL given by Railway, you may encounter a
502 Error
. This issue typically resolves itself within a few minutes. -
Congratulations 🎉 your app have successfully been deployed. You can also connect a custom domain for free in the
Settings
tab.
Approach 3 - Render
Just like vercel, Render also offers a generous free plan, so you will be able to host this app for free unless you get millions of users.
-
Create a Render account if you don't have one already.
-
Click on the
Deploy to Render
button above. -
Render will ask you to enter a
Blueprint Name
, enter any suitable name. -
Now under the
Environment Variables
section enter the following environment variables:-
MONGODB_URI
- The MongoDB connection string created previously. -
CONTACT_WEBHOOK
- The Discord webhook URL for the contact form created previously. -
URL_REPORT_WEBHOOK
- The Discord webhook URL for the URL report form created previously.
-
-
Click on
Apply
and wait for the deployment to finish. -
Once the deployment is finished, you will get a URL where your app is deployed, it should look something like
https://<random-words>.onrender.com
. -
Congratulations 🎉 your app have successfully been deployed. You can also connect a custom domain for free on Render under the
Settings/Custom Domains
section of your deployment.
Approach 4 - Koyeb
Just like Vercel Koyeb is also a good hosting platform which offers one free deployment. Although you might need to upgrade to a paid plan to connect a custom domain.
-
Create a Koyeb account if you don't have one already.
-
Click on the
Deploy to Koyeb
button above. -
Scroll to the
Environment Variables
section and fill it out carefully as mentioned in the previous approaches. -
Click on
Deploy
and wait for the deployment to finish. -
Once the deployment is finished, you will get a URL where your app is deployed, it should look something like
https://<random-words>.koyeb.app
. -
Congratulations 🎉 your app have successfully been deployed. You can also connect a custom domain for your koyeb deployment here.
Koyeb is a great service but it's free plan does not allow you to add a custom domain, so it is recommended that you use any of the other services mentioned above.
Limitations of using this method
-
It is not possible to edit the application in any possible way.
-
It is not possible to add custom SEO to your deployment.
-
It may not provide full control over the server and its configuration.