-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
23 lines (17 loc) · 649 Bytes
/
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
/** IMPORTS **/
const express = require("express");
const App = require("./App");
const path = require("path");
const rateLimit = require("express-rate-limit");
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const session = require("express-session");
const passport = require("passport");
const server = express();
const manager = new App(server, path);
/** REST **/
manager.configureProxy(rateLimit);
manager.configureServer(cookieParser, bodyParser, session, passport);
manager.prepareServer();
manager.prepareRoutes();
App.prepareSitemap().toFile();