Postgres, Aspnet Core API and Angular Webgui

Hi guys.
I'm new here and getting to know railway! I find it fantastic for us. I am lost. I would like to know where I can get guided into deploying an app with the following:

- postgres DB
- aspnet core project/folder hosting REST API connecting to postgres
- pgadmin4 for debugging purposes connecting to postgres
- angular project/folder hosting the webgui connecting to the aspnet core project/folder

Your help and guidance is much appreciated.
Hi. I am sorry. I wasn't expecting an answer. And I went into a meeting.
Project Id: n/a
hello! I would only know how to help you deploy the angular website, would you like help with that side of your project?
I can generate the to projects
And have them in 2 separate GitHub repositories
Would that help?
I am using this: https://aspnetzero.com/Features option number 1
ASP.NET Core and Angular based Single-Page Application (SPA) solution for your web application.
share the repo for angular
Ok. Will do. I am stuck in a meeting the rest of the afternoon. Will send it tonight
GitHub ok?
Do I set it up public or private?
public, how else would i see it lol
You can send me your GitHub user and can share it
also, if it has anything to do with asp.net i wont be able to help with that, but if its just a regular spa angular app i can
The angular project depends on the aspnet core api
how do you run the angular app locally
I start the aspnet core project. And the angular project points to the API port
So it's like linking/joining both projects
sounds like someone i might not be able to help with
but ill look anyway
Thanks. Let me set up the project with aspnetboilerplate
It is the open source version of aspnetzero
I have setup the 2 projects:
- https://github.com/sel-carlitos/railway-demo-aspnetcore
- https://github.com/sel-carlitos/railway-demo-angular
the angular app is just a regular angular app, I can help with that, but I won't be able to help with the .net app
But can you help in loading the projects? Maybe linking them? The aspnetcore should be the only project connected to postgres
Sorry. Been in meeting all day long
I'm sorry but I can not help with anything .net, as I simply do not know anything about .net
your angular app will be a separate Railway service from the .net api so I can help with that
here is a pr to the angular app, this gets it running on railway
it still makes api requets to http://localhost:4200 so when you have your .net api running in a diffent service you will have to change that api url
Thanks for all your help. I am understanding more about railway. I find it fascinating
have you tried to deploy your .net api though?
railway does have native support for .net apps after all, so there's a chance railway would just be able to deploy it
haven't tried. studying your commit.
and understanding it.
both the caddyfile and nixpacks.toml files are fully committed
I just needed to add a build script to your package.json so that railway knows that your app needs to be built, then caddy is setup to serve the built app, caddy should only use around 20mb of memory, making your deployment of your angular app extremely cheap
yes. that's what amazes me
if you have any other questions about the pr feel free to ask
so reading the docs and learning more about using railway.app in my stack
sure thing.
https://learn.coderfoundry.com/course-catalog > They have a this course that might be useful for learning: Railway - Publish a .NET Application (FREE)
oh thanks but i have no intrest in learning .net

Looking for more? Join the community!

Recommended Posts
Cannot change default provider for environment thats created during GitHub Pull RequestI posted about this a while back (https://discord.com/channels/713503345364697088/112689969354953113expressidkI'm not sure on how to transfer my wiki.js database data to railway.86f37e49-db7c-4b6f-9c3e-71f5447b116a I am either getting a broken wiki.js database that results in Build and deployment is accountable in service consumptionconsider in a context of docker image number of images downloaded and each operation performed in doQuestion about billHello i have a railway acount and i work with my accounting team but they need an tax number identifEnvironment Variable Not foundI am using nodejs as a backend and the config plugin with it to get the access to the Railway envoirERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sockI tried deleting my Railway proc file and getting this error now ERROR: Cannot connect to the DockerNeed wordpress template helpI have this error: Please contact your hosting service and ask them to increase max_input_vars valueCan't login using my emailHi there, I'm trying to login to my account using the magic link, but whenever I do it I get this erDjango Deployment Issue - 503 Error on Railway PlatformHello, I am encountering a 503 error ("Application failed to respond") while deploying my Django apAccessing application results in 502. "upstream connect error or disconnect/reset before headers. "Trying to publish an application to the railway platform. It is a mixture of react, together with soAbout Private networkingHi, I saw Railway has https://docs.railway.app/reference/private-networking Private network domain, refundThe estimated bill is $5, but the actual cost is $11.99, which is much higher than expected. I requeHelloHello, I added cascade = CascadeType.ALL to a OneToMany relationship in my DB. Works locally, but deCannot create code snapshot right nowProject ID `a0e71e1d-430e-45cc-95c5-af153af61c1c` "Cannot create code snapshot right now, please reDeploy my app on Railway (Cost)Hello, Actually I have an API made with Nodejs + Express about Real Estate so I wanna recommendatioHow do you add a worker to a Procfile?It seems that Railway only accepts "web", so how can I add a "worker" to a Procfile?Cannot create code snapshot right nowUnable to deploy across multiple services, both using CLI and branch-triggered deploys. The deploy lhosting fivem (https://fivem.net) server on railwaywould it be possible to host fivem on railway? there is linux binaries for hosting the server. is thHelp configuring express app for use with storage volumeHi, I hope this is the right forum for this question. I have an express app that is using middleware