https://github.com/crypto-artisan/pet-shop
https://github.com/crypto-artisan/pet-shop
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/crypto-artisan/pet-shop
- Owner: crypto-artisan
- License: mit
- Created: 2024-01-25T15:09:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-25T15:10:31.000Z (over 1 year ago)
- Last Synced: 2025-01-19T22:22:55.398Z (4 months ago)
- Language: JavaScript
- Size: 634 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pet Shop Truffle Box
This box has all you need to get started with our [Pet Shop tutorial](http://truffleframework.com/tutorial).
## Installation
1. Install Truffle globally.
```javascript
npm install -g truffle
```2. Download the box. This also takes care of installing the necessary dependencies.
```javascript
truffle unbox pet-shop
```3. Run the development console.
```javascript
truffle develop
```4. Compile and migrate the smart contracts. Note inside the development console we don't preface commands with `truffle`.
```javascript
compile
migrate
```5. Run the `liteserver` development server (outside the development console) for front-end hot reloading. Smart contract changes must be manually recompiled and migrated.
```javascript
// Serves the front-end on http://localhost:3000
npm run dev
```**NOTE**: This box is not a complete dapp, but the starting point for the [Pet Shop tutorial](http://truffleframework.com/tutorial). You'll need to complete that for this to function.
## FAQ
* __How do I use this with the EthereumJS TestRPC?__
It's as easy as modifying the config file! [Check out our documentation on adding network configurations](http://truffleframework.com/docs/advanced/configuration#networks). Depending on the port you're using, you'll also need to update line 16 of `src/js/app.js`.