How I can get started using railway to host a website, discord bot, and a roblox bot

Anonymous
TRIAL

a year ago

I'm pretty new to programming and very new to railway. I was just curious how I would get started using railway and what tools/frameworks I should use. Any help is appreciated πŸ™

Note: I'm using MongoDB, hosting it from their website, how would I link it to my railway service/project?

0 Replies

Anonymous
TRIAL

a year ago

N/A


a year ago

It all depends on the frameworks you're using, but you can always just link your gh repo (if you are using a gh repo) and see how the build goes or opt to a Dockerfile, to link your MongoDB you can do so through env vars, MongoDB probably gave you the DB url, username, pass, etc… You can also host your own MongoDB on railway if needed.


a year ago

You can always base yourself off already existing templates in https://railway.app/templates


a year ago

Also you can guide yourself through the docs https://docs.railway.app/overview/the-basics


a year ago

Railway uses Nixpacks, so if you link a project without a dockerfile it will try recognizing what you're building and build a dockerfile for you (for railway to use)


Anonymous
TRIAL

a year ago

I'll try linking it through the gh repo. Also what's a build and a dockerfile? (And env vars?) You kinda lost me there πŸ˜…


a year ago

Hmm.. Build is basically the process of converting your project's source code into a runnable application


a year ago

And "Dockerfile" is a text file that contains a series of instructions on how to build a Docker image (which is your application but on "containers/boxes")


a year ago

It serves to "package" your application for easy distribution across systems


a year ago

It's a bit of a "devops", you don't necessarily need to know about Docker but it helps.

(I mean.. I guess one of railway's strongest points is you not needing to dwelve into devops that much)


Anonymous
TRIAL

a year ago

@Medim Thank you sm man.


Anonymous
TRIAL

a year ago

Yeah, I'm very confused on the Docker/Build stuff, but I'll learn


a year ago

Np, u can comment on this thread or @me if u got any more questions


Anonymous
TRIAL

a year ago

@Medim sorry for the ping.
Quick question:
Say I have multiple "groups" that I own in need of a bot/website, should I place the under the same project as they all need to connect to each other.

But, if more users use this, will my project be charge a lot more than if I were to split it up?


Anonymous
TRIAL

a year ago

Or would splitting it up be a waste of time?


a year ago

Hmm for easier management I would place them under different projects


a year ago

You can still link them up, and also makes it easier to differentiate the billings


Anonymous
TRIAL

a year ago

ight, I was just thinking about having the website be it's own project, the discord bot, and the other bot.


Anonymous
TRIAL

a year ago

3 projects


Anonymous
TRIAL

a year ago

cheaper and might be easier to manage


a year ago

About it being easier to manage sure, but about it being cheaper i don't think so since railway is based on usage


a year ago

You can also put then on one project and arrange them in groups


Anonymous
TRIAL

a year ago

what is groups?


Anonymous
TRIAL

a year ago

I thought railway works like: You have the hobby plan, so each project you create will have $5 usage monthly


Anonymous
TRIAL

a year ago

So would all of these add up for a total?

1258886561294975200


a year ago

Yes


Anonymous
TRIAL

a year ago

0_0


a year ago

that’s not how this works. You pay a subscription fee of 5$ a month +(your project usage-5$)


a year ago

if your project usage is under 5$, then you are just charged the flat subscription fee


Anonymous
TRIAL

a year ago

Oh alr, is there anyway to keep my usage down?


a year ago

write good / efficient code, dont run development servers