diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-17 19:09:43 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-06-17 19:09:43 +0200 |
| commit | 3e50d64d26cc52460c1aed65174ba44a0aabaf86 (patch) | |
| tree | 7ad29441871626282bd951bb241203437a6ca868 | |
| parent | a798128abda047f25c42a37fd5486fff9acffcb9 (diff) | |
| download | status-3e50d64d26cc52460c1aed65174ba44a0aabaf86.tar.gz status-3e50d64d26cc52460c1aed65174ba44a0aabaf86.zip | |
simple node server
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | package.json | 23 | ||||
| -rw-r--r-- | server.js | 5 |
3 files changed, 29 insertions, 0 deletions
@@ -1 +1,2 @@ data/ +node_modules/ diff --git a/package.json b/package.json new file mode 100644 index 0000000..b165c6c --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "status", + "version": "1.0.0", + "description": "", + "main": "server.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://gitlab.com/vainglorygame/status.git" + }, + "author": "schneefux", + "license": "UNLICENSED", + "bugs": { + "url": "https://gitlab.com/vainglorygame/status/issues" + }, + "homepage": "https://gitlab.com/vainglorygame/status#README", + "dependencies": { + "connect": "^3.6.2", + "server-static": "^2.0.5" + } +} diff --git a/server.js b/server.js new file mode 100644 index 0000000..ce4b843 --- /dev/null +++ b/server.js @@ -0,0 +1,5 @@ +#!/usr/bin/node + +var connect = require('connect'); +var serveStatic = require('serve-static'); +connect().use(serveStatic(__dirname)).listen(8890, () => {}); |
