diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25c8fdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +package-lock.json \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..7a1377d --- /dev/null +++ b/index.js @@ -0,0 +1,13 @@ +const express = require('express'); +const app = express(); +const port = 4200; + +app.get('/', (_, response) => { + response.json({ + message: "Root" + }).send(); +}); + +app.listen(port, () => { + console.log(`App listening at http://localhost:${port}`); +}); \ No newline at end of file diff --git a/model.json b/model.json new file mode 100644 index 0000000..dc9b538 --- /dev/null +++ b/model.json @@ -0,0 +1,24 @@ +{ + "name.surname@ukma.edu.ua": { + "name": "Illia Yatsyshyn", + "faculty": "Faculty of Informatics", + "speciality": "Computer Science", + "semester": [{ + "idx": 1, + "subjects": [{ + "name": "Blockchain", + "tutor": "kyrylog@ukma.edu.ua", + "grade": 98, + "tasks": [{ + "title": "Ethereum task1 transaction with data", + "grade": 5 + }, + { + "title": "Ethereum task2 ERC20 token", + "grade": 5 + } + ] + }] + }] + } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..354fae2 --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "kmachain", + "version": "1.0.0", + "description": "This is joint project of students learning Basics of blockchain technology and cryptocurrencies at FI NaUKMA and 482.", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "start": "node index.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/tsshn/KMAChain.git" + }, + "author": "Illia Yatsyshyn", + "license": "ISC", + "bugs": { + "url": "https://github.com/tsshn/KMAChain/issues" + }, + "homepage": "https://github.com/tsshn/KMAChain#readme", + "dependencies": { + "express": "^4.17.1" + } +} \ No newline at end of file