Add template

This commit is contained in:
Arti Zirk 2017-06-10 16:36:54 +03:00
parent 1dccd68543
commit e8cc7f6af0
5 changed files with 52 additions and 0 deletions

5
template/.gitignore vendored Normal file
View File

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

3
template/README.md Normal file
View File

@ -0,0 +1,3 @@
# standard exam template
backup from here https://bitbucket.org/mkalmo/i399exam

17
template/index.html Normal file
View File

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

12
template/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
template/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');
}