Lurker News
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.

Comments (441) 141 threads

Earlier comments
cybertim#
- Frontend: Angular 7+

- Backend: NodeJS with Hapi and Mongoose / Mongodb
- Auth module in Hapi (JWT)
- All in Typescript and VSCode
These libraries have been stable for a while now. Tried GraphQL / Apollo for a while but the amount of breaking updates made me go back to the stack mentioned above. Currently i'm exploring dotnet core (in C#) and blazor.

Alir3z41 reply#
Frontend: Angular7 (or Angular8 next week :D).

Backend: Django or Rails.
Database: PostgreSQL.
Deployment: Heroku
Code Sharing: GitHub or Gitlab.
CI: GitLab CI if you're on Gitlab or CircleCI if on GitHub.
CodeCov.io for code coverage

h1d1 reply#
This is not your resume, you need to explain.
Alir3z4#
That's your homework!
kyriakos3 replies#
PHP /laravel and react.
bnt2 replies#
I’m actually surprised Laravel isn’t mentioned much here.
h1d#
People may be afraid to mention PHP, as "experienced" people laugh at it but in fact PHP is good that nothing beats its deployment speed.
illuminati19111 reply#
Probably because the year is 2019, not 2004.
detaro#
Today is roughly as far from the first release of Laravel as 2004.
rawfan1 reply#
Yep.

In the past years Laravel has helped us quickly build prototypes that we could conveniently grow into enterprise-scale apps.
Backend: PHP/Laravel Frontend: Same, using VueJS as needed/wanted. Database: Usually starting off with SQLite and switch to a more appropriate choice like Postgres, MariaDB or even MSSQL.

ksec#
I am seeing lots more companies using Laravel with Vue.js.

If it wasn't for PHP I think Laravel would have overtook Rails as the tools to build prototypes.

aregsarkissian#
Laravel even more then rails and django comes with pretty much everything you need for modern web dev built in. Full auth system, feature and unit test infrastructure, background jobs, push notifications integrated with a scalable third party websocket service, integrated with vuejs, webpack wrapper and more. It also has a prebuilt development VM that has supporting services such as mysql and redis or you can use various docker solutions for that. There is also excellent laracasts video course platform with free series on getting started with laravel and there is also codecourse video casts that has examples of full blown websites built with laravel
adrianhel1 reply#
If you go for React, I would highly recommend Mobx for state management. And create-react-app + yarn eject to get started. CRA is a joy to work with.

Mobx is a bit more difficult to grok and debug for newcomers than Redux, but it's really really fast, easy to test and requires little boilerplate.
On the other hand you get reactive state management by default in Vue.
If you use Node for the backend I can recommend using Knex for database queries and migrations while using Postgres.
But if your app will be write heavy, you should consider NoSQL. Neo4j looks very promising in this area and Mongodb also works well.
You will have an easier time migrating data and keeping the data in a known, consistent state with an SQL database. So use that unless your app is write heavy.
I also like using Sqlite for smaller apps. Your database is a single file, you can use knex and switch to Postgres if needed.
As for the backend, I recommend using dependency injection and decouple the http layer from the APIs in all cases where it's possible. It makes things easier to test. Personally I rolled my own library (@adrianhelvik/container) for DI in Node.

TN1ck#
I am currently building a really complex application using Mobx, it’s great! Because of how it works you can do things that are impossible with redux - as the state would take too long to update with redux. I’m also using mobx-state-tree which is like the love child of mobx and redux. Amazing project as well, should be used if you want to have explicit model validation and immutability. I used it to build a history feature - that would have been almost impossible with vanilla mobx.

Load more comments