On Sep 18, 2014, at 12:39 PM, Aleksandra Czajka wrote: > > you have client-side and server-side js files. how does node.js specify which > .js file runs on server and which runs on browser.
If you're using a web framework like express, you designate a folder to be accessible to the client (e.g. a "public" folder). Files not in that folder cannot be accessed by the client. If you're not using a web framework, then you can program it to work however you want it to. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/A796233E-2A44-467E-826A-5B7DE9F4AD22%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
