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

Commit

Permalink
fixup: add an acnchoring file for the app
Browse files Browse the repository at this point in the history
fixup: address review comments, add a README
  • Loading branch information
gireeshpunathil committed Jul 18, 2020
1 parent 722d9b5 commit 90a42ff
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
25 changes: 25 additions & 0 deletions servers/express/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Node.js Examples: express

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.

## References:
- npm: https://www.npmjs.com/package/express
- GitHub: https://github.com/expressjs/express
- website: https://expressjs.com/


## Usage:

`npm install` to install as a local project
`node index.js` to run as a standalone server
`npm test` to run the tests

## Contributors ✨

Gireesh Punathil <[email protected]>

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

Contribution opportunities:
- adding a couple of more common scenarios
- tightening and widening the tests
21 changes: 21 additions & 0 deletions servers/express/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// Entry point of the app when you ran as a server

var app = require('./app.js')
app.start()
2 changes: 1 addition & 1 deletion servers/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "express-examples",
"version": "1.0.0",
"description": "Express basic function examples",
"main": "app.js",
"main": "index.js",
"directories": {
"test": "test"
},
Expand Down

0 comments on commit 90a42ff

Please sign in to comment.