Skip to content
  • This project
    • Loading...
  • Sign in

Jabis Sevón / esm

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • esm
  • examples
  • index.js
  • Julien Breux's avatar
    Add examples · 10bbaf56
    Julien Breux committed 2016-08-19 12:47:14 +0200
    10bbaf56
index.js 369 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
const express = require('express');
const app = express();

const config = {
  path: '/',
  title: 'Express Status',
  spans: [{
    interval: 1,
    retention: 60
  }, {
    interval: 5,
    retention: 60
  }, {
    interval: 15,
    retention: 60
  }]
}

app.use(require('../index')(config));

app.listen(3000, () => {
  console.log('🌏  http://0.0.0.0:3000');
});