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
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)
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)
a year ago
Np, u can comment on this thread or @me if u got any more questions
@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?
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
ight, I was just thinking about having the website be it's own project, the discord bot, and the other bot.
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
I thought railway works like: You have the hobby plan, so each project you create will have $5 usage monthly
a year ago
Yes
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
a year ago
write good / efficient code, dont run development servers