This projects is an Ethereum based lottery.
You have 2 ways of running it
1 - Using MetaMask For Google Chrome
2 - Running your own GETH node
./geth --testnet --fast --rpc --rpcapi db,eth,net,web3,personal --unlock 0 --password "your_passrd-txt-file" --rpccorsdomain="*" console
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|module
.
geth --preload bin/admin.js --testnet --verbosity 0 console --unlock $OWNER --preload
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
There is also a live demo currently running against the main Ethereum network.
Demo requires metamask installed on latest version of google chrome browser.
There is a step by step manual on how to play using the official ETHLottery client.
This is the link to the official ETHLottery smart contract.
The project was made by two friends who belive the world should not be in control by a minority of people who take advantage by power. We all share the same planet and we all want to live!
Life Lottery!