Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

dylan kane
dylan kane
2,772 Points

Social Media Site Made with Java Script

So, i've learned java script, and i am in the process of learning node js. I believe I am ready to start programming my social media site, which I want made in java script. There is only one problem, and that is I have no idea where to start. I chose to make the social media features with java script rather than say ruby because you have more control over what is going on, and now that I have learned js i can use this to my advantage. I understand js very well, but I dont not have the slightest idea where to start. I want to make social media features like blogging, signing up, making profiles, rating things, etc. Any advice on where to start, some good videos to watch, or even some frameworks to look into would be fantastic. Thanks! By the way, the website is completely done except for the js, so all i need to do is add those features.

Gunhoo Yoon
Gunhoo Yoon
5,027 Points

Well topic like Social Media is popular and it can get crazy depends on how high you want to go. I haven't built any kind of those nor even tried, so I can't really answer it. However, since this topic is pretty popular you can search your question through Google. see the result Few ones on top looks helpful to you.

Server side scripting language you might want to use would be Node.js, Popular database that works well with Node.js seems to be MongoDB. Popular framework for Node.js would be Express.

2 Answers

I'm currently trying to achieve something similar in nodejs : user accounts / chat rooms / member directory and basic status timeline (with text only for now)... Things seems to start working well, it's on a good way :)

Tools I use for this project :

  • Express with express generator : for http server, router system & jade templates
  • MongoDB for the database (npm : monk, mongodb, mongoose)
  • Socket.io for real time interactions (for the chat room, i used it just for the users to be able to see each character typed appear in real time before the message is sent)
  • passport : for user accounts, passport is a nice tool which supports all major social network authentication

for the frontend i use gulp, sass, jquery

for debbuging, don't forget to 'use strict' and i'd highly reccomend to try "mocha" for test units and of course git (github) as it's very easy to deploy on a real server (i use a VPS server for now)

Hope it will help! (and excuse my bad english...)

PS : check out this VERY nice tutorial that helped me a lot at the same time I follow treehouse courses : http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/

dylan kane
dylan kane
2,772 Points

Thanks for the indepth answer this was pretty much what i needed to get started. I appreciate the time you put in to giving me this answer man!

Jose Balaguer
Jose Balaguer
17,473 Points

Award winning answer. Great job man :)

I would highly recommend Meteor.js as a framework for a project this complex if you are the only one developing it. I don't know how comfortable you are building login systems, but Meteor can create them for you and this can save days of work/pain for a beginner developer. Here is a pretty comprehensive list of learning materials

By the way, one of my favorites is the meteor chef

Hope this helps, and good luck!

dylan kane
dylan kane
2,772 Points

thanks so much!