diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/index.js b/index.js new file mode 100644 index 0000000..352ecb8 --- /dev/null +++ b/index.js @@ -0,0 +1,12 @@ +var express = require('express'); +var app = express(); + +app.use(express.static(__dirname + '/public')); + +app.get('/', function (req, res) { + res.send('Hello World!'); +}); + +app.listen(3000, function () { + console.log('Example app listening on port 3000!'); +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..52219d1 --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "tomatouiuiweb", + "version": "1.0.0", + "description": "this is test app", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "first app for horeku" + ], + "author": "toma", + "license": "ISC", + "dependencies": { + "express": "^4.14.0" + } +} diff --git a/public/images/a.jpg b/public/images/a.jpg new file mode 100644 index 0000000..239398f Binary files /dev/null and b/public/images/a.jpg differ diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..d4abebf --- /dev/null +++ b/public/index.html @@ -0,0 +1,8 @@ + + + + +

ahaha

+i am Toma~~ + + \ No newline at end of file diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css new file mode 100644 index 0000000..9453385 --- /dev/null +++ b/public/stylesheets/style.css @@ -0,0 +1,8 @@ +body { + padding: 50px; + font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; +} + +a { + color: #00B7FF; +}