Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/antonio-marasescu/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 addresses onto the blockchain.
https://github.com/antonio-marasescu/ethereum-cv-sharepoint

angular blockchain docker ethereum ganache ipfs solidity truffle typescript

Last synced: about 1 month ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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
- IPFS Docker-Compose: https://github.com/rongfengliang/ipfs-docker-compose
- IPFS and Angular: https://medium.com/better-programming/manage-the-ipfs-image-uploading-with-angular-ngrx-v8-61aaaf0be0d5
- Ganache Compose: https://github.com/digitaldonkey/ganache-cli-docker-compose/blob/master/docker-compose.yml