Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 90a42ff

Browse files
fixup: add an acnchoring file for the app
fixup: address review comments, add a README
1 parent 722d9b5 commit 90a42ff

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

servers/express/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Node.js Examples: express
2+
3+
This directory contains some non-trivial examples for express. Express is an exemplary web server framework that implements a simple and powerful backend API interface. According to [their own website](https://expressjs.com/), express is a fast, unopinionated, minimalist web framework for Node.js.
4+
5+
## References:
6+
- npm: https://www.npmjs.com/package/express
7+
- GitHub: https://github.com/expressjs/express
8+
- website: https://expressjs.com/
9+
10+
11+
## Usage:
12+
13+
`npm install` to install as a local project
14+
`node index.js` to run as a standalone server
15+
`npm test` to run the tests
16+
17+
## Contributors ✨
18+
19+
Gireesh Punathil <[email protected]>
20+
21+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
22+
23+
Contribution opportunities:
24+
- adding a couple of more common scenarios
25+
- tightening and widening the tests

servers/express/index.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
// Entry point of the app when you ran as a server
19+
20+
var app = require('./app.js')
21+
app.start()

servers/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "express-examples",
33
"version": "1.0.0",
44
"description": "Express basic function examples",
5-
"main": "app.js",
5+
"main": "index.js",
66
"directories": {
77
"test": "test"
88
},

0 commit comments

Comments
 (0)