As a long time software developer who hasn't done full stack in awhile (since 2013), what's everyone's go to web hosting stack today? Wanted to quickly put together a simple website with react/node.
If you didn't provide constraints (node/react), I would use the following. Please note, this is highly opinionated, so nothing to get offended or upset about. I like to keep my stack simple:
A. Simple static sites: - Jekyll B. Medium complexity, CRUD applications: - Phoenix/Elixir
- Coffeescript Note: With the latest version of Phoenix, you absolutely don't any JS frontends at all. Watch they keynote presentation for the liveview demo: https://www.youtube.com/watch?v=Z2DU0qLfPIY C. Complex Web applications: - Phoenix/Elixir
- GraphQL/Absinthe
- VueJs + Vuex + Coffeescript Developing with Phoenix/Elixir is so much better than any of the node frameworks in the ecosystem - this has consistently been my experience. So, give it a shot if you can.
Use Elixir only if this isn't going to turn into a team effort or you'll need your team to learn from the language.
And coffeescript is taken over by other transpilers like TS and even ES6 and above. Check here for static site generators. There are good alternatives to Jekyll. https://www.staticgen.com
I've found that Angular2/3/4/5/6/7 has been great for quickly putting together a website. I've been using it to build enterprise sites for several years.
Last time I looked at React you had to pick & include separate libraries for things like routing or dependency injection yourself, and these are separate things by separate people and the libraries you pick may or may not work with others now or in the future - think DLL hell with conflicting versions and a rock and a hard palce in terms of what you upgrade. That was a deal breaker for me. Angular on the other hand has a lot of this built-in already. Bonus points for Angular is that it has an extensive, mature and well-maintained official UI library (https://material.angular.io/) and now has a CLI tool for quickly scaffolding your app. As a result, putting together a website with Angular these days is trivially easy - its like lego. There are Long Term Support releases if you are worried about churn, but I've not found the changes between major versions to be anything to worry about. Criticisms of Angular: - feels like quite a lot of boilerplate code has to be written if you dont want to use the CLI tool (and if you do, a lot of the code it generates might look like "magic" unless you bother to go learn how modules and bootstrapping etc work) - inter-component communication (beyond simple parent-child relationships) feels a bit awkward and "unclean" (parent-child is trivial though) - learning curve for the RxJS stuff can be high if you are not familiar with it and are doing anything slightly complex. For the backend, I've personally been using Golang. Not used node.js professionally, but I am very interested by node.js's replacement http://deno.land/ - deno+TypeScript on the backend and Angular+TypeScript on the frontend is very tempting. VSCode is the absolute go-to editor for all of this stuff. It really is pretty decent.
Web Components are highly underappreciated as a front-end framework. With Microsoft moving over to Blink for their browser engine, they should be usable natively anywhere now. If you want a standards based approach, go with Web Components rather than React or Vue or whatever is the current flavor of the month. LitElement is a thin layer on top of the standard to make binding and templating easier but still generates standards-based web components. And performance is theoretically better than virtual DOM.
BTW, LitElement is the bleeding edge front-end framework from the Chrome team at Google.
If you like Web Components and TypeScript, think this 200-line library gives stiff competition to LitElement: https://github.com/wisercoder/uibuilder UIBuilder brings JSX to Web Components.
Lately, for small projects, I'm doing everything in firebase. No need to worry about anything. And if you use functions for all data manipulations, you have yourself a fully featured engine with web hosting, file hosting and database, configured with your code and with realtime updates if you ever need it.
For client I'm mostly using React and typescript. For bigger projects, as others mentioned Postgres is a must. I use Node.js with express and knex when I'm able, but usually I'm limited to using either django/rails or MVC.net, all being pretty great.
Comments (441) 141 threads
Earlier commentsA. Simple static sites:
- Jekyll
B. Medium complexity, CRUD applications:
- Phoenix/Elixir - Coffeescript
Note: With the latest version of Phoenix, you absolutely don't any JS frontends at all. Watch they keynote presentation for the liveview demo: https://www.youtube.com/watch?v=Z2DU0qLfPIY
C. Complex Web applications:
- Phoenix/Elixir - GraphQL/Absinthe - VueJs + Vuex + Coffeescript
Developing with Phoenix/Elixir is so much better than any of the node frameworks in the ecosystem - this has consistently been my experience. So, give it a shot if you can.
And coffeescript is taken over by other transpilers like TS and even ES6 and above.
Check here for static site generators. There are good alternatives to Jekyll.
https://www.staticgen.com
Coffeescript has not been taken over. It even supports JSX.
Last time I looked at React you had to pick & include separate libraries for things like routing or dependency injection yourself, and these are separate things by separate people and the libraries you pick may or may not work with others now or in the future - think DLL hell with conflicting versions and a rock and a hard palce in terms of what you upgrade. That was a deal breaker for me.
Angular on the other hand has a lot of this built-in already. Bonus points for Angular is that it has an extensive, mature and well-maintained official UI library (https://material.angular.io/) and now has a CLI tool for quickly scaffolding your app. As a result, putting together a website with Angular these days is trivially easy - its like lego. There are Long Term Support releases if you are worried about churn, but I've not found the changes between major versions to be anything to worry about.
Criticisms of Angular:
- feels like quite a lot of boilerplate code has to be written if you dont want to use the CLI tool (and if you do, a lot of the code it generates might look like "magic" unless you bother to go learn how modules and bootstrapping etc work)
- inter-component communication (beyond simple parent-child relationships) feels a bit awkward and "unclean" (parent-child is trivial though)
- learning curve for the RxJS stuff can be high if you are not familiar with it and are doing anything slightly complex.
For the backend, I've personally been using Golang. Not used node.js professionally, but I am very interested by node.js's replacement http://deno.land/ - deno+TypeScript on the backend and Angular+TypeScript on the frontend is very tempting.
VSCode is the absolute go-to editor for all of this stuff. It really is pretty decent.
- Golang + Postgres for backend
BTW, LitElement is the bleeding edge front-end framework from the Chrome team at Google.
For client I'm mostly using React and typescript.
For bigger projects, as others mentioned Postgres is a must. I use Node.js with express and knex when I'm able, but usually I'm limited to using either django/rails or MVC.net, all being pretty great.
All comments shown.
Couldn't load more comments. Check your connection and try again.