Skip to content

Instantly share code, notes, and snippets.

@onuryilmaz
Last active May 7, 2020 13:03
Show Gist options
  • Save onuryilmaz/a7c5e3deb8e6980b62962da0e4a35e11 to your computer and use it in GitHub Desktop.
Save onuryilmaz/a7c5e3deb8e6980b62962da0e4a35e11 to your computer and use it in GitHub Desktop.
test.js
'use strict';
const express = require('express');
const { Appsignal } = require('@appsignal/nodejs');
// Constants
const PORT = 8080;
const HOST = '0.0.0.0';
const appsignal = new Appsignal({
active: true,
name: 'onuryilmaz'
});
// App
const app = express();
app.get('/', (req, res) => {
res.send('Hello World');
});
app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment