{"size": 763, "ext": "js", "max_stars_repo_path": "server.js", "max_stars_repo_name": "ONSdigital/eq-extract-questions", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server.js", "max_issues_repo_name": "ONSdigital/eq-extract-questions", "max_issues_repo_issues_event_min_datetime": "2020-04-23T11:26:37.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-10T15:16:04.000Z", "max_forks_repo_path": "server.js", "max_forks_repo_name": "ONSdigital/eq-extract-questions", "max_forks_repo_forks_event_min_datetime": "2021-04-11T07:47:17.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-11T07:47:17.000Z"}
{"max_stars_count": null, "max_issues_count": 17, "max_forks_count": 1, "avg_line_length": 29.3461538462, "max_line_length": 66, "alphanum_fraction": 0.7182175623}
require('dotenv').config()
const express = require('express')
const nunjucks = require('nunjucks')
const bodyParser = require("body-parser")
const setupFilters = require(`./utils/setupFilters`)
const indexRouter = require(`./routes/index`)
const authorRouter = require(`./routes/author`)
const runnerRouter = require(`./routes/runner`)
const app = express()

app.use(bodyParser.urlencoded({ extended: true, limit: "10mb" }))
app.use(bodyParser.json({ limit: "10mb" }))
app.use(express.static('static'))
app.use('/', indexRouter)
app.use('/author', authorRouter)
app.use('/runner', runnerRouter)

const env = nunjucks.configure("views", {
  autoescape: true,
  express: app
})

setupFilters(env)

app.listen(3000, () => console.log('Server started on port 3000'))
