Create a character voting app using React, Node.js, MongoDB and Socket.io
11–20 of 59 posts
Re: Create a character voting app using React, Node.js, MongoDB and Socket.io
#12Re: Create a character voting app using React, Node.js, MongoDB and Socket.io
#13> "...using React, Node.js, MongoDB and Socket.IO..."
Re: Create a character voting app using React, Node.js, MongoDB and Socket.io
#14Why is modern webdev this hard? Even the todo-mvcs are all ~500 to 1000+ lines.
Re: Create a character voting app using React, Node.js, MongoDB and Socket.io
#15Re: Create a character voting app using React, Node.js, MongoDB and Socket.io
#16Swig seems superfluous in that stack given it already has React, one could just use React to prerender the pages.
> But do we really need a separate template for this? Why not just render everything inside the App component? Yes, you could do it, as long as you are okay with invalid HTML markup and not being able to include inline script tags like Google Analytics directly in the App component. But having said that, invalid markup is probably not relevant to SEO anymore and there are workarounds to include inline script tags in React components. So it's up to you, but for the purposes of this tutorial we will be using a Swig template.
Re: Create a character voting app using React, Node.js, MongoDB and Socket.io
#17Impressive and awesome. This is perfect to catch up on using build tools. I focus on core programming concepts in my own work, and at work most of that stuff is automated to just a few commands, so I appreciate the gulp.js part of your tutorial most. Thanks for the great work.
I ignored Grunt for years, always implementing my own hackneyed systems in Python, until I eventually discovered this tutorial[1], which at least got me a good introductory "this is how you use this thing that everybody else already knows how to use, dummy" lesson.
Re: Create a character voting app using React, Node.js, MongoDB and Socket.io
#18Why is modern webdev this hard? Even the todo-mvcs are all ~500 to 1000+ lines.
What are you talking about? I've never seen a 2k lines todomvc.
I've removed node_modules and bower_components from the items in: https://github.com/tastejs/todomvc/examples
I've also deleted "polymer" and "emberjs_require" since they didn't have any files in them and messes up the `wc -l`
$ for x in *; do echo $x; wc -l `find $x/ -name '*js*' -type f | egrep -v 'test|lib|public|vendor|.bundle.js|.cache.js'`; echo; done
Results:
http://pastebin.com/GqF0g3qFObviously one can improve the filtering to get more accurate results but you get the point. To make a TODO mvc you need at least 5+ different files and totalling a lot of lines. The fact that jQuery solution (which is very nice code, not the typical spaghetti) beats the majority of them in line count is pretty ironic.
Re: Create a character voting app using React, Node.js, MongoDB and Socket.io
#19Re: Create a character voting app using React, Node.js, MongoDB and Socket.io
#20Is it really a "full-stack" "app" ? Sounds more like a set of scripts: > "...using React, Node.js, MongoDB and Socket.IO..."