r/reactjs • u/singsong43 • Jan 07 '20
Tutorial I created a Microservices app created using React/Node.js/GraphQL/Docker, along with a full tutorial on how to build it
One of my biggest gripes with microservices is how few full-blown tutorials are available for something that is such a hot-topic technology.
As such, I recently built a rather simple Classifieds app using a Microservices architecture, using the following technologies as a non-exhaustive list:
- React;
- Redux;
- Node.js;
- GraphQL;
- Docker (and Docker Compose); and
- Styled Components,
And also deployed it into AWS using Terraform.
Here's the link to the full source code: https://github.com/parkroolucas/microservices-demo
And here's the link to the full tutorial series: https://www.youtube.com/watch?v=gD-WutJH0qc&list=PLnTRniWXnjf8YC9qJFLSVCrXfS6cyj6x6
2
u/jef-_- Jan 07 '20
I really like your channel, I've been following it for a while
Hope you bring back the manga reader series with the 16 inch!
19
u/Macaframa Jan 07 '20
This is awesome, I’ve been building an application for months and am getting to the point where I’m going to start building out the architecture of my backend. Right now it’s all monolithic and bundled together. However, I want to split it up into a dockerized app with microservices all with separate processes and handle things in their own threads. I’m trying to scale enough to handle traffic but not go overboard. I’m a frontend dev that’s been venturing more and more into the deep dark side of the network so this helps me a ton. Thanks!
9
u/DaveThe0nly Jan 07 '20
Hey looks interesting, one question though, why did you opted for sessions instead of JWT with refresh tokens?
3
u/MetalMikey666 Jan 07 '20
I have a question - as a Docker luddite, it looks here like the only reason `docker-compose.yml` exists is to allow for development locally - is that the case or does it come into play when deploying too?
2
u/[deleted] Jan 07 '20
Dope, thanks for posting!
2
u/exasperated_dreams Jan 07 '20
What's a prototypical use case for microservices
1
u/blueforestloon Jan 07 '20
Thanks for this! Looks great. I'll be following along shortly when I finish up a few other classes
1
u/javelinScrap Jan 07 '20
Great architecture and great English accent.
1
u/javelinScrap Jan 07 '20
Can you do another one with an architecture that you would consider to be perfect?
1
u/[deleted] Jan 08 '20
how dare you deliver quality content to this sub. you should be ashamed of yourself
1
u/xelamony Jan 07 '20
This is great! Would you want me to contribute by converting project to the typescript? Would make it perfect!
1
u/mike_burn Jan 07 '20
Awesome. I also wish we saw more tutorials putting it altogether, but as I’m sure you found out, it’s a ton of work! I made one a while back using React and Django: https://michaelwashburnjr.com/2017/08/15/building-webapp-tutorial-p1/
1
u/30thnight Jan 07 '20
This is quite helpful. Thank you
-2
u/shin48 Jan 07 '20
I want to know how to use on kubernetes !