https://github.com/howarto/pae-blockchain-frontend
https://github.com/howarto/pae-blockchain-frontend
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/howarto/pae-blockchain-frontend
- Owner: Howarto
- License: apache-2.0
- Created: 2018-10-25T10:18:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T16:52:43.000Z (over 7 years ago)
- Last Synced: 2025-04-10T16:57:28.506Z (about 1 year ago)
- Language: CSS
- Size: 950 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
UPC-FIB-PAE Project 2018-2019 Q1
# Authors
* Diego Lao
* Clara Picazo
* Andreu Feliu
* Manel Fernández
# Why this project?
PAE is a subject from FIB(Facultat d'informàtica de Barcelona) that wants to teach to students abilities to create and sell ideas.
For this year, we have a challenge related with Blockchain. We need to use this technology to solve an actual problem.
The chosen product was a LinkedIn with the possibility to validate students or workers aptitudes, works and studies. The main reason to do it is that has been detected workers during last year without the career that they pretend to have.
Also, the system allows to maintain automated processes like: as a university, validate student's subjects and validate the whole career if all the subjects were passed.
The main objective of this project is demonstrate that it's possible the main two cases to make a verified LinkedIn application.
## First Case: Identity pays to other to show its CV (if it's a person) or pays to look person's CV (if it's a company)
To simulate this case you have to do the next steps:
1. Go to http://localhost:3000/companies/bayer/sendcv and press the button _Send CV_
2. Go to http://localhost:3000/users/mery/lookcv and look that there is a message explaining that there are aptitudes of the complete CV.
## Second Case: University has received user's fee transaction, create smart contract and interact with it.
1. Go to http://localhost:3000/universities/fib/smartcontract and press _Create smart contract_ to deploy a smart contract that validates the user when the student has three or more passed subjects.
2. Press three times the button _The student pass one subject more!_.
3. Go to http://localhost:3000/users/mery/lookvalidation and look that there is a message explaining that user is verified.
# Commands and actions to run the project
`Run Ganache`
```
cd %PROJECT_FOLDER%
npm install
npm start
```
`Now the server is running working on http://localhost:3000`
# Developer tools
This project is made as a prototype. For this reason it's only tested on separate _Ethereum_ network. To achieve this _Ganache_ is used.
You can download [here](https://truffleframework.com/ganache) _Ganache_ (GUI version).
After that is mandatory change from _Global.js_. You must change all the **_Globals.accounts.user.%NAME%_** values with **public keys generated by Ganache.** Also you can change Ganache configuration using the next mnemonic **__panel hurt state cousin source increase dinner royal mass example prison hand__** .