diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..b009dfb --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8b1a9d8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + +Copyright (C) 2004 Sam Hocevar + +Everyone is permitted to copy and distribute verbatim or modified +copies of this license document, and changing it is allowed as long +as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README.md b/README.md new file mode 100644 index 0000000..4abc01a --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# webring server + +## run it + + npm i + cp webring.txt.sample webring.txt && $EDITOR webring.txt + npm run start + +## link to webring sites + +participating sites should link to the endpoints `/prev?from=` and +`/next?from=` from their site, where `` is the URL for their site +from `webring.txt`. for example, a site in the webring as +`https://example.net/~someone` should link to +`/prev?from=https://example.net/~someone` and +`/next?from=https://example.net/~someone` on whatever host this server is +accessible from. + +## license + +[WTFPL](/LICENSE) diff --git a/package.json b/package.json index d4fbf69..87db6fa 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "start": "node index.mjs" }, "keywords": [], "author": "",