Skip to content

Commit ef7aed5

Browse files
added server and version files
1 parent 7c68b87 commit ef7aed5

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const ejs = require('ejs');
2+
const express = require('express');
3+
4+
const app = express();
5+
6+
const port = process.env.PORT || 3000;
7+
8+
app.engine('.html', ejs.__express);
9+
app.set('view engine', 'html');
10+
11+
app.use(express.static('public', { type: 'application/javascript' }));
12+
13+
app.get('/', (req, res) => {
14+
res.render('index');
15+
});
16+
17+
app.listen(port, () => {
18+
console.log(`Example app listening at http://localhost:${port}`);
19+
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "2.1", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } }

0 commit comments

Comments
 (0)