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 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