This is a side project that I made simply because I wanted to make something that interacts with Garlicoin (GRLC).
Example of purchased rose: https://cryptoroses.us/check?hash=0xacbc535fc764af0a8fd29a99cb74beda32c354fef7354eb84bd7f7a589748aaf
- Make sure you're using node v8.9.x
git clone https://github.com/kendricktan/cryptoroses.us.git
cd cryptoroses.us
- Set up env var
export ETH_MNEMONIC_KEY='XXXXXX' # Mnemonic key for your ETH account
export INFURA_API_KEY='XXXXXX' # Used to deploy contract via infura
- You have the option to deploy to 4 different networks (testrpc, ropsten, rinkeby, or mainnet). Note you'll need some ETH (around 0.1 ETH) to deploy the contract onto the mainnet.
truffle migrate # testrpc
truffle migrate --network ropsten # ropsten
truffle migrate --network rinkeby # rinkeby
truffle migrate --network mainnet # mainnet
- Installing packages
npm install
cd client npm install
cd ..
- You'll need to spawn two tabs: 1 for the oracle and one for the web app
- Terminal 1
node garlicoinOracle.js
- Terminal 2
npm run build
npm run start
- Navigate to
http://localhost:3000