Skip to content

Commit

Permalink
Revert "Update README to use truffle unbox command"
Browse files Browse the repository at this point in the history
This reverts commit 4159c93.
  • Loading branch information
gnidan authored and OnlyOneJMJQ committed Jun 28, 2017
1 parent 6749e34 commit c181063
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,28 @@ All truffle boxes come with Truffle, Webpack and React. This box adds react-rout
npm install -g ethereumjs-testrpc
```

2. Download box.
2. Clone or download the truffle box of your choice.
```javascript
truffle unbox truffle-box-auth
git clone [repo]
```

3. Compile and migrate the contracts.
3. Install the node dependencies.
```javascript
npm install
```

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

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

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.
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.
```javascript
// Runs Jest for component tests.
npm run test
Expand All @@ -35,7 +40,7 @@ All truffle boxes come with Truffle, Webpack and React. This box adds react-rout
truffle test
```

6. To build the application for production, use the build command. A production build will be in the build_webpack folder.
7. 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 c181063

Please sign in to comment.