diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d5f19d8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +package-lock.json diff --git a/index.js b/index.js new file mode 100644 index 0000000..e5e7ada --- /dev/null +++ b/index.js @@ -0,0 +1,10 @@ +const express = require('express'); + +const app = express(); +const port = 3000; + +app.get('/', (req, res) => { + res.json({msg: "Hello, world"}).send(); +}) + +app.listen(port, () => console.log('Server started')) diff --git a/model.js b/model.js new file mode 100644 index 0000000..2ee652a --- /dev/null +++ b/model.js @@ -0,0 +1,66 @@ + +const exampleDataModel = { + "name.surname@ukma.edu.ua": { + "fullName": "Ivanov Ivan Ivanovych", + "faculty": "Informatics", + "specialty": "Computer Science", + "year": 1, + "semesters": [ + { + "semester": 1, + "subjects": [ + { + "name": "Linear Algebra", + "professor": "name.surname@ukma.edu.ua", + "grade": 95, + "topics": [ + { + "title": "Basics" + }, + { + "title": "Vectors" + }, + { + "title": "Matrices" + } + ] + }, + { + "name": "Data Bases", + "lector": "name.surname@ukma.edu.ua", + "grade": 89, + "topics": [ + { + "title": "Intoduction", + }, + { + "title": "Relational", + }, + { + "title": "NoSQL", + }, + ] + } + ] + }, + { + "semester": 2, + "subjects": [ + { + "name": "C++", + "lector": "name.surname@ukma.edu.ua", + "average": 91, + "topics": [ + { + "title": "Syntax", + }, + { + "title": "OOP", + } + ] + } + ] + } + ] + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..de1e534 --- /dev/null +++ b/package.json @@ -0,0 +1,22 @@ +{ + "name": "kmachain", + "version": "1.0.0", + "description": "NaUKMA permissioned blockchain
This is joint project of students learning Basics of blockchain technology and cryptocurrencies at FI NaUKMA and 482.solutions company
Mission of the project is to develop dapp Electronic Student Records on permissioned blockchain KMAChain build with HyperLedger Fabric", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/KyivMohylaAcademy/KMAChain.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/KyivMohylaAcademy/KMAChain/issues" + }, + "homepage": "https://github.com/KyivMohylaAcademy/KMAChain#readme", + "dependencies": { + "express": "^4.17.1" + } +}