# Go Live and Deploy
It's time to go live and deploy Simcord to the cloud!
Why do we need to do this?
Simcord under the hood is a serverless function that needs to live somewhere on the Internet so it can respond to requests and form the bridge between our inbox and Discord. This section will help us accomplish this.
Unlike the rest of the steps this step is in fact the easiest and is also my favourite because it's incredibly simple. 😃
# Make a Vercel Account
Login to your GitHub, GitLab or BitBucket account. Create an account if you don't have one from here.
Now, head over here and create a Vercel account. You can use your existing existing GitHub, GitLab or BitBucket account to signup quickly.
# Deployment
Now follow along. Vercel will basically clone the main Simcord repo into your own GitHub, GitLab or BitBucket account and will use that for deployment.
Before deploying, you'll probably see a screen like this.
Deploy Simcord.
There's a Required Environment Variables section and after collapsing it you'll notice it houses just a single variable called
DISCORD_TOKEN
.By now you've probably guessed it. This is the place where in we need to add the bot token we generated in the previous Generate Discord Token page. To add the bot token the value for this variable must be of the format
Bot <BOT_TOKEN>
. For example, your token is12345678
then the value which you need to save isBot 12345678
. Please note if you're using token from your own Discord account then you need to omit theBot
part and use the token as is.Tap on deploy and wait for the project to become live. Your own version of Simcord was successfully deployed 🎉.
We have now deployed a serverless API without breaking a sweat!
Successful Deployment.
Upon deployment you should see a page like this. Tap on Visit to see this very website hosted now from your own account!
Note down the address for this website. We're going to need this later when we hook up our SMS gateway. It should be something like
https://my-simcord.vercel.app
.
# Ready for More?
Ready for More?
Phew! We have covered a lot so far. We have built a bot and also deployed our own version of Simcord on the cloud.
Now, only the last milestone remains.
Head over to the SMS Gateway Configuration page or click on the link at the bottom.