Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sergioalberto/ethereum-lab
Ethereum laboratory where you can find some examples of dapps
https://github.com/sergioalberto/ethereum-lab
Last synced: about 18 hours ago
JSON representation
Ethereum laboratory where you can find some examples of dapps
- Host: GitHub
- URL: https://github.com/sergioalberto/ethereum-lab
- Owner: sergioalberto
- License: apache-2.0
- Created: 2021-12-17T20:56:51.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-24T13:28:46.000Z (over 2 years ago)
- Last Synced: 2023-08-03T17:05:48.319Z (over 1 year ago)
- Language: JavaScript
- Size: 607 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ethereum-Lab
Ethereum laboratory where you can find some examples of dapps## Set up
- Download `Ganache` (it is a test blockchain that helps with deploying smart contracts, developing applications, and running tests): http://trufflesuite.com/ganache/
- Open `Ganache` and create a quick workspace
- Install `truffle`: ``` npm install truffle -g ``````
truffle version
# Create a new project inside an empty folder
truffle init
truffle create contract YourContractName
truffle create test YourTestNametruffle compile
truffle build
truffle migrate# Deploy your smart contract code
truffle deploy --reset# Connect to 'development' network
truffle console
```## Build and run the client with Docker
```shell
# Dev
docker build -f Dockerfile -t supply-chain-dapp-dev .
docker run -it -p 3000:3000 supply-chain-dapp-dev
docker-compose up -d
docker-compose down -v#Prod
docker build -f Dockerfile.prod -t supply-chain-dapp .
docker run -it -p 3000:80 supply-chain-dapp
```