forked from tejasba2000/city-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
49 lines (38 loc) · 1.07 KB
/
index.js
File metadata and controls
49 lines (38 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
var express = require("express");
var app = express();
app.use("/population",express.static("Public"));
app.use("/childpopulation",express.static("Public"));
app.use("/literates",express.static("Public"));
app.use("/literacyrate",express.static("Public"));
app.use("/sexratio",express.static("Public"));
app.use("/graduates",express.static("Public"));
app.get("/",function(req,res){
res.render("homepage.ejs");
});
app.get("/maps",function(req,res){
res.render("maps.ejs");
});
app.get("/about",function(req,res){
res.render("about.ejs");
});
app.get("/population",function(req,res){
res.render("pop.ejs");
});
app.get("/childpopulation",function(req,res){
res.render("child_pop.ejs");
});
app.get("/literates",function(req,res){
res.render("lit.ejs");
});
app.get("/literacyrate",function(req,res){
res.render("lit_rate.ejs");
});
app.get("/sexratio",function(req,res){
res.render("sr.ejs");
});
app.get("/graduates",function(req,res){
res.render("grad.ejs");
});
app.listen(8000,function(){
console.log("Server started on port 8000");
});