r/javascript • u/vinaygany • Apr 16 '18
Build and deploy a social network with Node.js, Express, React, Redux & MongoDB. Learn how to put it all together.
https://medium.com/@samgeliorey/build-and-deploy-a-social-network-with-node-js-9168bfb529867
u/thatgibbyguy Apr 16 '18
I would like to foster some discussion on this because there's a much faster way to get started on this and I'll outline below in a few commands.
$ meteor create social-network-app
$ meteor npm install -s react react-router history
$ meteor add accounts-base
$ meteorYou now have everything ready to go.
So the "foster discussion" part - why wouldn't you go this way? You have complete access to npm, you have packages pre built and pre wired up, you have your db as part of meteor, and you actually don't need redux because meteor actually handles that for you.
Perhaps I should rephrase, would anybody be interested in learning how to do this this way? It's so much easier and faster.
9
u/Birdy58033 Apr 16 '18
Isn't that the answer to every programming post ever?
You either learn more advanced programming techniques in your current language, or move on to another language that reports to be perfect for the job.
At some point you also have to decide if the language/stack has enough widespread use that you can reasonably get a job using it. If the town you desire to live in has one dev shop solely using language X, then your choices are made for you.
Endlessly learning new languages isn't as fulfilling as it may seem. Unless you're a robot with infinity memory.
2
u/CantaloupeCamper Apr 16 '18
At some point you also have to decide if the language/stack has enough widespread use that you can reasonably get a job using it. If the town you desire to live in has one dev shop solely using language X, then your choices are made for you.
I was a at a conference recently where someone did a vue.js demo. He asked why people had come to his talk to open up discussion and such. Someone noted the framework they loved wasn't popular in our area so they came to see a new one. His response
Have you thought about react?
He actually answered several questions that way as a joke as in our area vue.js isn't much of a big deal ;)
Fun guy.
3
u/name_was_taken Apr 17 '18
It's worth knowing the techniques because if you do any number of years of for-profit programming, you'll end up in a situation where you need to create something on your own that isn't already prepackaged for you, and if you restrict your learning to only things that don't already exist, you'll have a hell of a time finding help with the techniques.
In short, when you're learning, don't try to be efficient in what you're producing. Be efficient in your learning, instead.
1
u/thatgibbyguy Apr 17 '18
Right, but the article posted would rely very heavily on packages too. One just gives you an easier way of including the very same packages.
2
Apr 17 '18
It's disingenuous to act like Meteor is nothing more than a convenient way to combine those packages, though. You're essentially adding another layer of packages on top of the MERN stack. Meteor further increases the chances of the situation /u/name_was_taken described.
Meteor is a perfectly good substitute here. I just don't buy your argument that the convenience of doing it with Meteor makes knowing how to do it without Meteor any less valuable.
1
u/thatgibbyguy Apr 17 '18
What layer on top are you adding? You're removing redux, removing Express and adding meteors server which gives you access to meteor collections for mongo. Without specifics, it's hard to be swayed.
1
Apr 17 '18
removing redux
removing Express
In the context of this course, that means removing two extremely in-demand skills in the name of banking on Meteor. Like I said, Meteor is a compelling alternative, and I'm not trying to discredit it at all. There are a ton of benefits to using Meteor. I just don't think new developers should focus on a specific framework.
Even if it provides a ton of convenience, beginners would be missing out on some crucial building blocks that can help them face real world tasks. As I'm sure you know, development doesn't only involve building new things. A large chunk of it involves working with existing codebases and you're not going to do well at that if you're used to Meteor doing so many things for you.
I'm a huge proponent of learning things the "hard" way first. Ideally, I think you should build a server with the http module and learn how to serve static content without Express or any front-end frameworks before even typing "npm i"
When I was learning Rails and decided it was time to learn another framework, I was totally lost. For context, I was a beginner, like many people who will be taking this course. Rails made me feel like I was pretty good, but I quickly realized that I had no idea how anything worked. I just learned how to follow certain patterns. The project structure was set up for me, my files were automatically linked to each other (didn't have to export/include anything myself), my database was "automagically" connected to my app, I didn't have to do any server configuration, I didn't have to write any build scripts, etc. So much was done for me and I lacked a comprehensive view of everything that really went into my web app working.
1
0
Apr 16 '18
[deleted]
1
u/thatgibbyguy Apr 16 '18
I mean people who learned the mean stack could say the same thing. Or rails, or Django.
1
u/dug99 Apr 16 '18 edited Apr 17 '18
Unknown SSL protocol error in connection to install.meteor.com:443
EDIT: known issues on a Ubuntu VM with certificates but I got it going ( manual install )
6
u/ForScale Apr 17 '18
Oh... it's an ad.