-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
43 lines (37 loc) · 1.83 KB
/
index.js
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
//node modules
var express = require('express');
var app = express();
var pg = require('pg');
var conString = "postgres://codemog:demography@gis.dola.colorado.gov:5433/dola";
var allowCrossDomain = function(req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET');
next();
}
app.use(allowCrossDomain);
require('./routes/base_analysis.js')(app, pg, conString);
require('./routes/bea_jobs.js')(app, pg, conString);
require('./routes/components_change.js')(app, pg, conString);
require('./routes/county_profiles.js')(app, pg, conString);
require('./routes/county_race_by_age_forecast.js')(app, pg, conString);
require('./routes/county_sya.js')(app, pg, conString);
require('./routes/county_sya_race_estimates.js')(app, pg, conString);
require('./routes/county_sya_race_estimates_current.js')(app, pg, conString); //Added 7/19/2022 AB
require('./routes/household_projections.js')(app, pg, conString);
require('./routes/jobs_by_sector.js')(app, pg, conString);
require('./routes/labor_force_participation.js')(app, pg, conString);
require('./routes/muni_pop_housing.js')(app, pg, conString);
require('./routes/county_muni_timeseries.js')(app, pg, conString);
require('./routes/historical_census.js')(app, pg, conString);
require('./routes/jobs_forecast.js')(app, pg, conString);
require('./routes/wage_data.js')(app, pg, conString);
require('./routes/county_migbyage.js')(app, pg, conString);
require('./routes/profilesql.js')(app, pg, conString);
require('./routes/lodes.js')(app, pg, conString);
require('./routes/munijobs.js')(app, pg, conString);
require('./routes/grants_county.js')(app, pg, conString);
var server = app.listen(4001, function() {
var host = server.address().address;
var port = server.address().port;
console.log('Example app listening at http://', host, port);
});