Skip to content

An introductory application to using Ethereum with Angular, Truffle, Ganache and IPFS. It will represent a sharepoint for saving and sharing files addresses onto the blockchain.

License

Notifications You must be signed in to change notification settings

antonio-marasescu/Ethereum-CV-Sharepoint

Repository files navigation

Ethereum-CV-Sharepoint

An introductory application to using Ethereum with Angular, Truffle, Ganache and IPFS. It will represent a sharepoint for saving and sharing files (in our case CV's) onto the blockchain. More specifically storing their hash in the contract and saving the actual file onto IPFS.

Prerequisites

  • Node.js
  • Docker
  • Metamask Extension

Setup

  • clone the repository git clone https://github.com/antonio-marasescu/Ethereum-CV-Sharepoint.git
  • run npm install
  • run docker-compose up in the docker folder
    • ganache accounts will be listed in the console terminal
  • run npm run migrate --hard to deploy and compile the contracts
  • run npm run ng to start the angular application

For Issues regarding CORS when using IPFS on docker

After docker-compose use in the container console the following commands:

ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST", "GET"]'
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin  '["http://localhost:4200"]'

Acknowledgements

About

An introductory application to using Ethereum with Angular, Truffle, Ganache and IPFS. It will represent a sharepoint for saving and sharing files addresses onto the blockchain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published