This commit is contained in:
Märt Kalmo 2017-05-19 14:53:27 +03:00
commit 1f0f9a85ed
4 changed files with 49 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
node_modules
/.idea
*.iml
*.log

17
index.html Normal file
View File

@ -0,0 +1,17 @@
<!doctype html>
<html lang="et" ng-app="app">
<head>
<meta charset="utf-8">
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js"></script>
<script>
// kood tuleb siia
</script>
</body>
</html>

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "i399exam",
"version": "1.0.0",
"scripts": {
"serve": "nodemon server.js"
},
"devDependencies": {
"body-parser": "^1.17.1",
"express": "^4.15.2",
"nodemon": "^1.11.0"
}
}

15
server.js Normal file
View File

@ -0,0 +1,15 @@
'use strict';
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.use(bodyParser.json());
app.use(express.static('./'));
app.get('/...', f);
app.listen(3000, () => console.log('running at: http://localhost:3000'));
function f(request, response) {
response.end('ok');
}