Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
package-lock.json
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -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'))
66 changes: 66 additions & 0 deletions model.js
Original file line number Diff line number Diff line change
@@ -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",
}
]
}
]
}
]
}
}
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "kmachain",
"version": "1.0.0",
"description": "NaUKMA permissioned blockchain <br> This is joint project of students learning Basics of blockchain technology and cryptocurrencies at FI NaUKMA and 482.solutions company <br> 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"
}
}