2 years 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?
31 Replies
2 years 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.
2 years ago
You can always base yourself off already existing templates in https://railway.app/templates
2 years ago
Also you can guide yourself through the docs https://docs.railway.app/overview/the-basics
2 years 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 😅
2 years ago
Hmm.. Build is basically the process of converting your project's source code into a runnable application
2 years 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")
2 years ago
It serves to "package" your application for easy distribution across systems
2 years 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)
2 years 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?
2 years ago
Hmm for easier management I would place them under different projects
2 years 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.
2 years ago
About it being easier to manage sure, but about it being cheaper i don't think so since railway is based on usage
2 years 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
2 years ago
Yes
2 years ago
that’s not how this works. You pay a subscription fee of 5$ a month +(your project usage-5$)
2 years ago
if your project usage is under 5$, then you are just charged the flat subscription fee
2 years ago
write good / efficient code, dont run development servers
Status changed to Solved medim • about 1 month ago
