Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/antonio-marasescu/ethereum-cv-sharepoint
- Owner: antonio-marasescu
- License: mit
- Created: 2020-10-13T18:50:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-24T16:02:31.000Z (about 4 years ago)
- Last Synced: 2023-10-17T14:21:56.156Z (about 1 year ago)
- Topics: angular, blockchain, docker, ethereum, ganache, ipfs, solidity, truffle, typescript
- Language: TypeScript
- Homepage:
- Size: 398 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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