Skip to content

olisystems/charging-origin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OLI Charging Origin DApp

Initial skeleton for building decentralized applications with Vue.js and the Ethereum netwrok

  1. Description
  2. Getting Started
  3. Built With
  4. Contributing

1. Description

This is starter code for building decentralized applications with Vue.js on the top Ethereum netwrok.

2. Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

2.1. Prerequisites

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

2.2. Installing

Follow the steps below to have development environment running:

  1. Clone the repository:
git clone https://github.com/olisystems/charging-origin.git
  1. Change directory to app folder and install all requisite npm packages (as listed in package.json):
cd app
npm install
  1. Compile the smart contracts:
truffle compile

This will create the smart contract artifacts in folder src\assets\js\contracts.

  1. Migrate smart contracts to volta chain:
npm run migrate
  1. Test smart contracts:
npm run test
  1. Compiles and hot-reloads for development, run the following command inside app directory:
npm run serve

Navigate to localhost:8080 in your browser.

  1. Compiles and minifies for production:
npm run build

3. Built With

  • 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.

4. Contributing

Pull requests are welcome.

  1. Fork the repository.
  2. Create your new feature branch: git checkout -b new-feature-branch
  3. Stage your changes: git add .
  4. Commit the changes: git commit -m "add commit message"
  5. push to the branch: git push origin new-feature-branch
  6. Submit a pull request.