This repository houses the Stubber ticket sale and management platform. It has been built using Ethereum smart contracts.
In order to develop this contract the following steps were taken to setup the environment.
Install and run Ganache CLI (formally you would have used TestRPC). Alternatively you can install Ganche UI.
$ npm install -g ganache-cli
$ ganache-cli -p 7545
Navigate into the root of this project and install truffle (if you haven't already got it). Run the truffle test command to compile and test the contracts.
npm install -g truffle
truffle test
The configuration for running the network locally using truffle is in the truffle.js
file with the configuration below.
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*" // Match any network id
}
}
To change the network address this Dapp connects to simple open up src/js/app.js
and change the following line to point at your deployed verions of this repos contract
StubTokenAddress: '0x045d28dc903e9f3bb8e161eea5a78c0ce0777aa3',
Ownable.sol
, ERC721Token.sol
and assertRevert.js
contracts/tests are provided by the zeppelin-solidity repo.