Initial skeleton for building decentralized applications with Vue.js and the Ethereum netwrok
This is starter code for building decentralized applications with Vue.js on the top Ethereum netwrok.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Please make sure you've already installed Truffle and enabled MetaMask extension in your browser.
* Truffle v5.0.41 (core: 5.0.41)
* Solidity >= v0.5.8 (solc-js)
* Node >= v10.16.3
* Web3.js >= v1.2.1
Follow the steps below to have development environment running:
- Clone the repository:
git clone https://github.com/olisystems/charging-origin.git
- Change directory to
app
folder and install all requisite npm packages (as listed inpackage.json
):
cd app
npm install
- Compile the smart contracts:
truffle compile
This will create the smart contract artifacts in folder src\assets\js\contracts
.
- Migrate smart contracts to
volta
chain:
npm run migrate
- Test smart contracts:
npm run test
- Compiles and hot-reloads for development, run the following command inside
app
directory:
npm run serve
Navigate to localhost:8080
in your browser.
- Compiles and minifies for production:
npm run build
- Ethereum - Ethereum is a decentralized platform that runs smart contracts to make the web faster, safer, and more open.
- Truffle Framework - Truffle is the most popular development framework for Ethereum with a mission to make your life a whole lot easier.
- Vue.js - The Progressive JavaScript Framework for building user interfaces.
Pull requests are welcome.
- Fork the repository.
- Create your new feature branch:
git checkout -b new-feature-branch
- Stage your changes:
git add .
- Commit the changes:
git commit -m "add commit message"
push
to the branch:git push origin new-feature-branch
- Submit a
pull request
.