Premium Only Content

Deploy ASP.NET Core MVC to Railway with PostgreSQL – No Azure, No Credit Card!
00:00 – Introduction
00:40 – Deploying to Azure Alternatives Without a Credit Card
02:10 – Deploying with the Railway Platform
03:50 – Forking a Repo to Avoid Misconfigurations
05:20 – Creating a New Service in Railway Using a GitHub Repository
07:00 – Downgrading from .NET 9.0 to .NET 6.0 for Railway Compatibility
08:50 – Pushing Code to GitHub Using SourceTree
09:30 – Automatic Service Initialization After GitHub Push
13:00 – Setting Up a Public URL for Your Hosted App
14:20 – Configuring a Database Service for Your App
15:10 – Brief Overview of PostgreSQL
16:40 – Connecting to PostgreSQL Using pgAdmin
18:50 – Renaming the PostgreSQL Database
21:20 – Updating EF Core to Target PostgreSQL Instead of SQL Server
22:40 – Installing the Npgsql Package for Entity Framework
24:15 – Modifying the Connection String for PostgreSQL
25:40 – Removing SQL Server–Specific HiLo Sequences
29:20 – Handling Missing File Scenarios on the Server
33:25 – Cleaning Up Existing EF Core Migrations for SQL Server
34:39 – Using "rm -r Migrations" to Delete Migrations
35:10 – Generating PostgreSQL Migration with "dotnet ef migrations add InitialCreate"
38:44 – Using Railway Platform Credentials to Connect to PostgreSQL
41:20 – Updating baseUrl to Match Railway Deployment
43:17 – Switching Environment Flags for Railway Deployment
45:15 – Final App Running with PostgreSQL on Railway
45:35 – Conclusion
In this video, I walk you through how to deploy our previously developed Asp.net MVC core app on Railway platform instead of Azure (by passing credit card requirments)
🚀 What You’ll Learn:
Deploying you app to Railway Platform
Using PostgreSQL instead of MSSQL server
Setting up Services on Railway Platform
Tips on extending the application for real-world use
📦 About eShopOnWeb:
eShopOnWeb is a sample ASP.NET Core reference application, showcasing the clean architecture and best practices for building scalable web apps.
GitHub link
https://github.com/dotnet-architecture/eShopOnWeb
🔧 Tech Stack:
ASP.NET Core
Entity Framework Core
Razor Pages
Clean Architecture principles
✅ Don't forget to like, subscribe, and turn on the notification bell if you want more tutorials like this.
💬 Got questions or suggestions? Drop them in the comments!
#eShopOnWeb #ASPNetCore #eCommerce #OpenSource #DotNet #WebDevelopment #Microsoft #WahabHussain #codekincreations #ckc
-
2:25:31
vivafrei
19 hours agoEp. 281: Charlie Kirk; Routh Trial; Charlotte Train; Bolsanaro Defense; SCOTUS & MORE!
152K223 -
2:55:38
Turning Point USA
10 hours agoWASHINGTON D.C. PRAYER VIGIL FOR CHARLIE KIRK
96K42 -
35:54
The Mel K Show
10 hours agoMel K & Tim James | Healing is an Inside Job | 9-14-25
71.5K4 -
3:06:33
IsaiahLCarter
13 hours ago $14.04 earnedCharlie Kirk, American Martyr (with Mikale Olson) || APOSTATE RADIO 028
74.9K23 -
16:43
Mrgunsngear
17 hours ago $12.38 earnedKimber 2K11 Pro Review 🇺🇸
54.4K14 -
13:40
Michael Button
1 day ago $3.75 earnedThe Strangest Theory of Human Evolution
49.6K24 -
10:19
Blackstone Griddles
1 day agoMahi-Mahi Fish Tacos on the Blackstone Griddle
36.5K3 -
23:51
Jasmin Laine
1 day ago“Stop Wasting My Time!”—Trump's BRUTAL WARNING To Canada As Poilievre ROASTS CBC LIVE
26.2K29 -
9:54
Millionaire Mentor
1 day agoNBC Host EXPOSES JB Pritzker For Saying This About Trump
18.3K14 -
1:35:39
SB Mowing
2 days agoIt took the WHOLE NEIGHBORHOOD to uncover this yards SHOCKING SECRET
100K65