Skip to content

Commit 9b98aad

Browse files
committed
Examples folder start with expressjs
Signed-off-by: Fabio José <[email protected]>
1 parent 70627ee commit 9b98aad

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

examples/express-ex/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var express = require('express');
2+
var app = express();
3+
4+
app.get('/', function (req, res) {
5+
res.send('Hello World!');
6+
});
7+
8+
app.listen(3000, function () {
9+
console.log('Example app listening on port 3000!');
10+
});
11+

examples/express-ex/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "express-ex",
3+
"version": "1.0.0",
4+
"description": "Examples to use CloudEvents with Express",
5+
"main": "index.js",
6+
"scripts": {
7+
"start": "node index.js",
8+
"test": "echo \"Error: no test specified\" && exit 1"
9+
},
10+
"keywords": [
11+
"cloudevents",
12+
"express"
13+
],
14+
"author": "[email protected]",
15+
"license": "Apache-2.0",
16+
"dependencies": {
17+
"express": "^4.17.1"
18+
}
19+
}

0 commit comments

Comments
 (0)