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 trialFredrik Blomberg
13,012 PointsDifference between frontend server and backend server.
In this tutorial we are supposed to log the frontend server runs on port 3000. What confuses me is the difference between front-end and backend. I thought programming server is backend-programming. However in this video we apparently setting up a front-end server. What is the difference?
2 Answers
stjarnan
Front End Web Development Techdegree Graduate 56,488 PointsHi Fredrik!
You created that server on port 3000 to be able to test your app without launching it live. You are the only one able to reach your localhost server at this point. You are still building a back-end.
I hope that helps, feel free to tag me if you get stuck! :)
Fredrik Blomberg
13,012 PointsOk thank you for the asnwer! So the reason he calls it frontend is that its a local server?
stjarnan
Front End Web Development Techdegree Graduate 56,488 PointsIt's been a while since I completed that course, and I can't watch the video right now. But yes that might have been the case. Express apps and node.js runs on the backend when you have them hosted, AKA backend.
Happy to help :)