Skip to the content.

Projecte de Tecnologies de la Informació


Technologies Diagram

Technologies Diagram

Transaction Operation Diagram

Operation Diagram

Demo Operation

Demo Video

Build and Run

Useful commands

Migrate contracts to the blockchain (from the ‘./src/blockchain/’ directory where the ‘truffle-config.js’ file is located)

truffle networks --clean
truffle migrate --reset

Enter Docker container interactively

docker run -it --entrypoint bash <containerName>

Stop and Remove Docker container

docker stop <containerName>
docker rm <containerName>

Check Docker logs

docker logs <containerName>

Copy from Docker container to host

docker cp <containerId>:/file/path/within/container /host/path/target

Add SSH Key to the ssh-agent

eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa_pti_server

Fetch a single file from Github

git fetch && git checkout origin/master -- ./src/blockchain/Dockerfile_BLOCKCHAIN

Build a docker container that will fetch from github using ssh

docker build -f ./webserver/Dockerfile_WEBSERVER --no-cache --progress=plain --secret id=id_rsa_pti_server,src=/home/jquintana/.ssh/id_rsa_pti_server -t pti_webserver . | more

Flutter WebApp

flutter channel beta
flutter upgrade
flutter config --enable-web

flutter devices

flutter create .
flutter build web