Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kneki2024 authored Sep 17, 2024
0 parents commit e37f6c7
Show file tree
Hide file tree
Showing 44 changed files with 5,464 additions and 0 deletions.
53 changes: 53 additions & 0 deletions Active_Mobility_Infrastructure_Benefit_Analysis-main/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
const express = require('express');
const bodyParser = require('body-parser');
const getRegionsRouter = require('./src/get_regions');
const value_route = require('./src/value_route');
const gdp_route = require('./src/gdp_route');
const cal_route = require('./src/cal_route')
const del_val_route = require('./src/del_val_route')
const add_var_route = require('./src/add_var_route')
const login_route = require('./src/login_route')
const description_route = require('./src/description_route')
const keep_alive_conn = require('./src/keep_alive_conn')



const app = express();
const port = 3001;

app.use(express.static('./public'));

app.set('view engine', 'pug');
app.set('views', './views');


// Middleware to parse JSON bodies
app.use(bodyParser.json());

// Use your regions router
app.use(getRegionsRouter);

app.use(gdp_route);

app.use(value_route);

app.use(cal_route);

app.use(del_val_route);

app.use(add_var_route);

app.use(login_route);

app.use(description_route);

keep_alive_conn();

app.get('/', (req, res) => {
// Render the index.pug file from the views directory
res.render('index');
});

app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});
Loading

0 comments on commit e37f6c7

Please sign in to comment.