4 ms·
If you've done Node.js with TypeScript (or even JS), you may want to consider C# and .NET Web APIs. C# and TS are syntactically similar. .NET minimal web APIs
by CharlieDigital 4y ago
If you've done Node.js with TypeScript (or even JS), you may want to consider C# and .NET Web APIs. C# and TS are syntactically similar.
.NET minimal web APIs are very similar to Express in setup (at least initially; you layer in middleware as needed).
You can get an API up and running in Google Cloud pretty quickly.
Short video here: https://www.youtube.com/watch?v=GlnEm7JyvyY https://www.youtube.com/watch?v=GlnEm7JyvyY (< 7 minutes to get a minimal web API into Google Cloud Run with no special tooling involved).
Entity Framework (ORM) is pretty good and supports a variety of databases (SQL Server, Postgres, MySQL, others). Working with JSON is low-friction.
- someuser54541 4y agoHow would you compare C# and .NET Web APIs with Entity Framework to Rails and Active Record?
- CharlieDigital 4y agoVery similar at the entity level, but C#'s LINQ interface to the generate the query is unique as you get fully typed queries in C# that are translated to the underlying DB. So example: database .Users .Where(u => u.ActivatedUtc < ...) // Filter .Select(u => new {...}) // Project