Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Build a Simple Dynamic Site with Node.js Creating a Basic Template Engine in Node.js Reading from Files

Rohit Thorat
Rohit Thorat
12,191 Points

all the html files we created in this project sits on front end or all of this sits on server ?

i want to know the html files we created here are front end websites that we are connecting to webserver using node js or is it like all the html pages are sitting on server ?.....i am bit confused , if all the files are sitting on server then how we will connect our front end website to server?

1 Answer

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

Hi Rohit,

In this case your files sits on the server. When a user sends a request to your server, the backend will send the user your front-end template to the users browser (which template depends on the request).

You could basically consider your templates as the frontend in this case.

I hope this helps

Jonas