- create a new account on railway.app
- go to railway's dashboard (https://railway.app/dashboard) and create a new project
- select "deploy from github repo" and paste the current github repo's url over there (i.e https://github.com/mickiestorm/chess-mates-mint-site-backend)
- add the environment variables as mentioned in .env.example file. you'll need to add in
DATABASE_URL
,WEBHOOK_URL
andPAYER_SECRET_KEY
variables by your own. railway.app's documentation regarding adding environment variables -- https://docs.railway.app/develop/variables - create a new mongodb database by following this tutorial -- https://www.mongodb.com/basics/create-database
- create a webhook for the channel where the bot would alert regarding the cron job status -- https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
- add in the payer's secret key