Skip to content

Commit 9c29403

Browse files
author
Hamit Zor
committed
Add demo app.
1 parent 0584662 commit 9c29403

File tree

5 files changed

+63800
-2
lines changed

5 files changed

+63800
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules
22
yarn.lock
33
package-lock.json
4-
dist

demo-app.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const path = require('path');
2+
const express = require('express');
3+
const compression = require('compression');
4+
const fs = require('fs');
5+
const app = express();
6+
7+
const indexHTML = fs.readFileSync(path.resolve(__dirname, 'index.html')).toString();
8+
9+
app.use(compression());
10+
app.get('*', (_, res) => res.send(indexHTML));
11+
12+
exports.app = app;

0 commit comments

Comments
 (0)