rherwig / template-react-ssr

Server-side rendering template using express and react 16
MIT License
170 stars 47 forks source link

Real-World example: What do you need? #8

Open rherwig opened 6 years ago

rherwig commented 6 years ago

Hey everyone,

since we plan on creating a real-world example for a PWA using this React 16, it would be great to know, what features you desire in a real-world example. Please suggest features here.

The first ones I can think of are:

crabbits commented 6 years ago

These all sound good. One of the top of my head would be adding somethhing like react-helmet for tags, page titles etc, useful for seo if you're using the stack for a landing page.

crabbits commented 6 years ago

Also maybe some tests, I usually use a mix of mocha, chai and enzyme.

rherwig commented 6 years ago

Never saw helmet before. I'm gonna take a look.

As far as testing goes, I used jest and enzyme for most of my react apps. But anyways, testing examples sound great.

rachmawatiafrida commented 6 years ago

Any news for React Helmet implementation?

rherwig commented 6 years ago

No progress so far, as I was kinda busy the last few weeks. I will create a dedicated issue for that and implement in the upcoming days

dwjohnston commented 6 years ago

Not sure if this is way out of scope of what you're asking, but basically I'm wanting a fully featured out of the box PWA with:

rherwig commented 6 years ago

I am actually working on a "real" PWA example right now.

Forms, progressive images and routing is definitely part of it! However, auth and social sharing might be difficult to provide for a "ready to use" template project, since they either involve database access and/or personal API tokens.

dwjohnston commented 6 years ago

What's your deployment/hosting philosophy? I'm currently playing around with Kubernetes and container based microservices - but I'm finding it's probably way too complicated compared to something like Heroku.

rherwig commented 5 years ago

I'm not really sure... on the one hand, docker seems really nice. But there are lots of things to consider - like handling container restarts, clustering, ... Service like firebase and/or heroku work for me, but I tend to self-host my apps, using docker for development and ansible for deploying (but without the container).

subhendukundu commented 5 years ago

I am kinda stuck with how to deploy the app I have built on top this. :( I am trying with firebase hosting. Any suggestion?

dwjohnston commented 5 years ago

I am kinda stuck with how to deploy the app I have built on top this. :( I am trying with firebase hosting. Any suggestion?

I build this as a docker image - and deploy the docker image somewhere. He is an example application that does this: https://github.com/dwjohnston/tinymassive-demo/tree/master

rherwig commented 5 years ago

Using a docker container is generally a good approach. However, I would suggest to use pm2 instead of the pure node executable.

Markkos89 commented 4 years ago

What about the Install button? :D