I created a simple node js application with Node and Express. It just used to serve couple of static files. It is serving files as
http://localhost:3000/index
http://localhost:3000/users
But I want to serve it with a project name. some thing like as follows
http://localhost:3000/myNodeProject/index
http://localhost:3000/myNodeProject/index
How do I do that ?
My Code
var express = require('express');
var path = require('path');
var routes = require('./routes/index');
var users = require('./routes/users');
var app = express();
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
app.use(express.static(path.join(__dirname, 'public')));
//Routers or HTTP Rest Requests
app.use('/', routes);
app.use('/users', users);
var server = http.createServer(app);