Browse Source

Initial commit

Jonas Oberg 1 year ago
commit
efc13ade00
4 changed files with 80 additions and 0 deletions
  1. 15
    0
      LICENSE
  2. 45
    0
      README.md
  3. 6
    0
      README.md.license
  4. 14
    0
      src/server.js

+ 15
- 0
LICENSE
File diff suppressed because it is too large
View File


+ 45
- 0
README.md View File

@@ -0,0 +1,45 @@
1
+# REUSE Hello (Simple)
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
+## Install
13
+
14
+To install Hello World, simply copy the file `src/server.js` to a convenient
15
+location, or (even better!) keep it in the repository.
16
+
17
+## Usage
18
+
19
+To run the server, listening on the default port (8082), simply run it from
20
+the `src/` directory as such:
21
+
22
+```
23
+$ cd src
24
+$ node server.js
25
+```
26
+
27
+Visit http://localhost:8082/ to receive your Hello World greeting, after
28
+starting the server.
29
+
30
+## Contribute
31
+To contribute to this project, please fork the repository at
32
+http://git.fsfe.org/reuse/hello-simple and make your contribution to the
33
+fork, then open a pull request to initiate a discussion around the contribution.
34
+
35
+## License
36
+This program is free software: you can redistribute it and/or modify
37
+it under the terms of the GNU General Public License as published by
38
+the Free Software Foundation, either version 3 of the License, or
39
+(at your option) any later version.
40
+
41
+The program in this repository meet the requirements to be REUSE compliant,
42
+meaning its license and copyright is expressed in such as way so that it
43
+can be read by both humans and computers alike.
44
+
45
+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: LICENSE.txt
6
+//

+ 14
- 0
src/server.js View File

@@ -0,0 +1,14 @@
1
+//
2
+// Copyright (C) 2017 FSFE e.V. <contact@fsfe.org>
3
+//
4
+// SPDX-License-Identifier: GPL-3.0+
5
+// License-Filename: LICENSE.txt
6
+//
7
+var http = require("http");
8
+
9
+http.createServer(function (request, response) {
10
+   response.writeHead(200, {'Content-Type': 'text/plain'});
11
+   
12
+   response.end('Hello World\n');
13
+}).listen(8082);
14
+

Loading…
Cancel
Save