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.
- 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.
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
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.
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
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.
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.
Comments (441) 141 threads
Earlier comments- 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.
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
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.
If it wasn't for PHP I think Laravel would have overtook Rails as the tools to build prototypes.
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.
All comments shown.
Couldn't load more comments. Check your connection and try again.