erikras / react-redux-universal-hot-example

A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform
MIT License
12.01k stars 2.5k forks source link

Webpack 2 + Api with Feathers + Auth + Offline support... #1332

Closed bertho-zero closed 6 years ago

thomasvincent commented 7 years ago

Big commit

numonium commented 7 years ago

I'd seriously love to use this repo to start a project, but really need this PR to be merged to do it.

Pullleeezzzeee / thanks / you're the best! <3

(If there's anything I can do to help, please let me know)

stevenaldinger commented 7 years ago

This repo isn't maintained but the guy who's routinely making these pr's is super cool and helpful and keeps an extremely well maintained fork. https://github.com/bertho-zero/react-redux-universal-hot-example

numonium commented 7 years ago

Is it even worth hand-rolling a project anymore, given how complex the modern web app has become? Or should we just always be copying and updating these boilerplates?

Genuinely curious - the constant deluge of frameworks and plugins and updates is a bit nerve wracking and I've been making websites this whole damn century.

sjdweb commented 7 years ago

Why does this fork add "Feathers"? It's really intertwined into the app both client side and the API. It's really off putting to be honest.

stevenaldinger commented 7 years ago

How would you recommend demonstrating jwt in a best practices way without it? I agree it's super intertwined which sucks in general but is what I'd end up using anyway.

On May 4, 2017 12:43 PM, "Sean Drumm" notifications@github.com wrote:

Why does this fork add "Feathers"? It's really intertwined into the app both client side and the API. It's really off putting to be honest.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/erikras/react-redux-universal-hot-example/pull/1332#issuecomment-299242006, or mute the thread https://github.com/notifications/unsubscribe-auth/ALQ35uFRiIv53BLYwNAWEvpBfoRrcqNJks5r2gAjgaJpZM4LDvDJ .

bertho-zero commented 7 years ago

Feathers makes it possible to make a modular, scalable API on the shoulders of giants like express, socket.io/primus, knex / sequelize / ..., superagent / fetch / ...

It allows to quickly and easily create an API in RESTful, to connect it easily with the client, to use the API in the same way in REST as in socket.

It adds no constraints to a standard API with express, there is only more, and everything is optional.

There are some new concepts like services and hooks, which make your modules much more maintainable and independent of the type of transport. Thanks to the hooks, you can create complex logic (roles, validation, formatting of data, ...), avoid repeating yourself, change database by changing only your schema ...

You can remove it as simply as the current "API" since it is only a universal base that I added for the API. This is a choice I made as the choice that made the author of this repo to use Redux rather than Mobx or nothing, for example. If it does not suit you you can use this original repo or find a bunch of other boilerplates on github.

Feathers binds you to nothing and brings you new possibilities.

bertho-zero commented 7 years ago

@numonium We are in a period with a lot of technical debt around these technologies, since react came out it had to create a router etc, new problems have arisen to us (like the server side rendering and the preloading of the data). Webpack and other tools have evolved so many of their plugins have had to adapt, etc., etc.

Let's not go back to a more calm phase, in my opinion.