You run node directly (or via a process supervisor). It is not typically
run under an "application server" like Tomcat.

It is often run _behind_ a web server, such as NGINX or Apache, operating
as a reverse proxy and serving up static content.

As for how to "serve many urls in a single piece of code", here are two
popular starting points:
 - http://expressjs.com/starter/hello-world.html
 - http://hapijs.com/tutorials

~Ryan

On Mon, 10 Aug 2015 at 07:01 Sankaran Kozhissery <[email protected]>
wrote:

> Hello
>
> I am a newbie to NodeJs. I would like to know how a typical NodeJs
> application will be deployed. Will the application be deployed in other
> web-servers like Apache Tomcat? Or the the NodeJs's default web-server
> capabilities will be used?
>
> If the default web-server capabilities are used, how would a typical code
> looks like to serve many urls in single piece of code. For example, in any
> web application, there could be many urls and typical MVC application, the
> request will be mapped to Action methods in certain classes. Same way how a
> request will be mapped in NodeJS.
>
> Please give me an insight into this.
>
> Sankaran
>
> --
> 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/0aeb6855-f3fc-4656-a445-1300f5313e74%40googlegroups.com
> <https://groups.google.com/d/msgid/nodejs/0aeb6855-f3fc-4656-a445-1300f5313e74%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGjmZGxEHThL82pjnBWhkWJH9O%3DiThYjDH%2B_VBcF-yM2tu6m0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to