Browse Source

Initial commit

Jonas Oberg 1 year ago
commit
2706af9efb
5 changed files with 111 additions and 0 deletions
  1. 15
    0
      LICENSES/GPL-3.0.txt
  2. 21
    0
      LICENSES/MIT-Microsoft.txt
  3. 50
    0
      README.md
  4. 6
    0
      README.md.license
  5. 19
    0
      src/index.js

+ 15
- 0
LICENSES/GPL-3.0.txt
File diff suppressed because it is too large
View File


+ 21
- 0
LICENSES/MIT-Microsoft.txt View File

@@ -0,0 +1,21 @@
1
+    MIT License
2
+
3
+    Copyright (c) Microsoft Corporation. All rights reserved.
4
+
5
+    Permission is hereby granted, free of charge, to any person obtaining a copy
6
+    of this software and associated documentation files (the "Software"), to deal
7
+    in the Software without restriction, including without limitation the rights
8
+    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+    copies of the Software, and to permit persons to whom the Software is
10
+    furnished to do so, subject to the following conditions:
11
+
12
+    The above copyright notice and this permission notice shall be included in all
13
+    copies or substantial portions of the Software.
14
+
15
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+    SOFTWARE

+ 50
- 0
README.md View File

@@ -0,0 +1,50 @@
1
+# REUSE Hello (Included)
2
+
3
+[![reuse compliant](https://img.shields.io/badge/reuse-compliant-green.svg)](https://git.fsfe.org/fsfe/reuse-web) 
4
+[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
5
+
6
+This repository is a part of the REUSE project and shows an example
7
+repository which is compliant to the REUSE best practices for making
8
+copyrights and licenses computer readable. It can be used as inspiration
9
+and for reference, to see what a repository following the practices would
10
+look like.
11
+
12
+The difference between this version, and the Simple example, is that this
13
+repository includes code copyright by another organisation and thus
14
+includes both MIT and GPLv3 licensed material. The `index.js` file is
15
+from the https://github.com/Azure-Samples/nodejs-docs-hello-world 
16
+repository.
17
+
18
+## Install
19
+
20
+To install Hello World, simply copy the file `src/server.js` to a convenient
21
+location, or (even better!) keep it in the repository.
22
+
23
+## Usage
24
+
25
+To run the server, listening on the default port (8082), simply run it from
26
+the `src/` directory as such:
27
+
28
+```
29
+$ cd src
30
+$ node server.js
31
+```
32
+
33
+Visit http://localhost:8082/ to receive your Hello World greeting, after
34
+starting the server.
35
+
36
+## Contribute
37
+To contribute to this project, please fork the repository at
38
+http://git.fsfe.org/reuse/hello-simple and make your contribution to the
39
+fork, then open a pull request to initiate a discussion around the contribution.
40
+
41
+## License
42
+This program is free software: you can redistribute it and/or modify
43
+it under the terms of the GNU General Public License version 3 as
44
+published by the Free Software Foundation.
45
+
46
+The program in this repository meet the requirements to be REUSE compliant,
47
+meaning its license and copyright is expressed in such as way so that it
48
+can be read by both humans and computers alike.
49
+
50
+For more information, see https://reuse.software/

+ 6
- 0
README.md.license View File

@@ -0,0 +1,6 @@
1
+//
2
+// Copyright (C) 2017 FSFE e.V. <contact@fsfe.org>
3
+//
4
+// SPDX-License-Identifier: GPL-3.0
5
+// License-Filename: LICENSES/GPL-3.0.txt
6
+//

+ 19
- 0
src/index.js View File

@@ -0,0 +1,19 @@
1
+//
2
+// Copyright (c) Microsoft Corporation.
3
+//
4
+// SPDX-License-Identifier: MIT
5
+// License-Filename: LICENSES/MIT-Microsoft.txt
6
+//
7
+var http = require('http');
8
+
9
+var server = http.createServer(function(request, response) {
10
+
11
+    response.writeHead(200, {"Content-Type": "text/plain"});
12
+    response.end("Hello World!");
13
+
14
+});
15
+
16
+var port = process.env.PORT || 1337;
17
+server.listen(port);
18
+
19
+console.log("Server running at http://localhost:%d", port);

Loading…
Cancel
Save