Skip to content

Commit

Permalink
Fix README to use truffle unbox command
Browse files Browse the repository at this point in the history
  • Loading branch information
gnidan committed Jun 26, 2017
1 parent d536791 commit 2d26688
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,23 @@ This box comes with everything you need to start using smart contracts from a re
npm install -g ethereumjs-testrpc
```

2. Clone or download the truffle box of your choice.
2. Downlaod box using Truffle.
```javascript
git clone [repo]
truffle unbox truffle-box-react
```

3. Install the node dependencies.
```javascript
npm install
```

4. Compile and migrate the contracts.
3. Compile and migrate the contracts.
```javascript
truffle compile
truffle migrate
```

5. Run the webpack server for front-end hot reloading. For now, smart contract changes must be manually recompiled and migrated.
4. Run the webpack server for front-end hot reloading. For now, smart contract changes must be manually recompiled and migrated.
```javascript
npm run start
```

6. Jest is included for testing React components and Truffle's own suite is incldued for smart contracts. Be sure you've compile your contracts before running jest, or you'll receive some file not found errors.
5. Jest is included for testing React components and Truffle's own suite is incldued for smart contracts. Be sure you've compile your contracts before running jest, or you'll receive some file not found errors.
```javascript
// Runs Jest for component tests.
npm run test
Expand All @@ -40,7 +35,7 @@ This box comes with everything you need to start using smart contracts from a re
truffle test
```

7. To build the application for production, use the build command. A production build will be in the build_webpack folder.
6. To build the application for production, use the build command. A production build will be in the build_webpack folder.
```javascript
npm run build
```
Expand Down

0 comments on commit 2d26688

Please sign in to comment.