1st
This commit is contained in:
commit
1f0f9a85ed
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
node_modules
|
||||
|
||||
/.idea
|
||||
*.iml
|
||||
*.log
|
17
index.html
Normal file
17
index.html
Normal 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
12
package.json
Normal 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
15
server.js
Normal 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');
|
||||
}
|
Loading…
Reference in New Issue
Block a user