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

Can you make social media sites like facebook, twitter, or youtube with javascript and node js?

I'd like to make a social media site where you make an account, blog, friend people, usual social media site stuff. I know ruby is usually used for this, but is it a good idea to use java and node js? i heard node js was better with servers. If javascript is a good path to follow for this, I would appreciate it if someone could provide me with a link on github to someone who did it to see their process, but thats only if you want to. Thanks in advance!

1 Answer

You can indeed use Node for this. You will probably want to use Express to set up an API. You would probably also want to use a front-end framework such as Angular.js or Ember to set up the blogs and other functionality you are after. Finally, you would need a place to host everything. Firebase is a good option, but there are plenty of others.

User authentication is an important consideration as well... I haven't dove much into that at this point, but it's on my todo list.

This might be a good place to start: http://scottksmith.com/blog/2014/10/05/twitatron-building-a-production-web-app-with-node/

Some of my more recent studies have involved Node and Express. The README's of these repo's have links to the tutorials I used:

https://github.com/IAMZERG/Node-Postgres-Todo-Frontend https://github.com/IAMZERG/Node-Postgres-Todo-Backend/

https://github.com/IAMZERG/REST-API https://github.com/IAMZERG/REST-CLIENT

Good luck!