Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taylorjdawson/decent.
Finally a truly decent(ralised) password manager.
https://github.com/taylorjdawson/decent.
Last synced: about 1 month ago
JSON representation
Finally a truly decent(ralised) password manager.
- Host: GitHub
- URL: https://github.com/taylorjdawson/decent.
- Owner: taylorjdawson
- License: mit
- Created: 2018-08-06T22:36:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T07:42:43.000Z (about 2 years ago)
- Last Synced: 2024-10-27T17:50:12.877Z (3 months ago)
- Language: JavaScript
- Size: 702 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vue.js truffle box
A [`truffle box`](http://truffleframework.com/boxes/) to serve as the foundation of any [`Truffle`](http://truffleframework.com) and [`Vue.js`](https://vuejs.org/) dApp. Comes with [`Vue.js`](https://vuejs.org/), [`vue-router`](https://router.vuejs.org/en/), [`Vuex`](https://vuex.vuejs.org/en/intro.html) and [`sass-loader`](https://github.com/webpack-contrib/sass-loader). A minimalist user authentication smart contract is also provided.
## Directory structure
This truffle box is crafted to enforce a clean directory structure.
```
/
|
+-- build/
| |
| +-- contracts/
| | |
| | + truffle compiled contracts
|
+-- config/
| |
| +-- babel/
| | |
| | + babel config files - to come (babel does not allow to specify a custom config file path - yet - so the babel configuration occurs in the package.json file for now)
| |
| +-- eslint/
| | |
| | + estlint config files
| |
| +-- postcss/
| | |
| | + postcss config files
| |
| +-- vue-loader
| | |
| | + vue-loader config files
| |
| +-- webpack/
| | |
| | + webpack config files
|
+-- contracts/
| |
| + solidity contracts
|
+-- migrations/
| |
| + truffle migrations files
|
+-- scripts/
| |
| + webpack scripts
|
+-- src/
| |
| + vue.js dapp files
|
+-- static/
| |
| + vue.js dapp static files
|
+-- test/
| |
| +-- e2e/
| | |
| | + e2e test files
| |
| +-- truffle/
| | |
| | + truffle test files
| |
| +-- unit/
| | |
| | + unit test files
```## Installation
1. Install [Truffle](http://truffleframework.com) and an Ethereum client - like [EthereumJS TestRPC](https://github.com/ethereumjs/testrpc).
```
npm install -g truffle // Version 3.0.5+ required.
npm install -g ethereumjs-testrpc
```2. Download this box.
```
truffle unbox wespr/truffle-vue
```
3. Launch [`testrpc`](https://github.com/ethereumjs/testrpc).
```
testrpc
```4. Compile and migrate the contracts.
```
truffle compile
truffle migrate
```4. Run the webpack server for front-end hot reloading. Smart contract changes do not support hot reloading for now.
```
npm run start
```
## Tests
This box comes with everything bundled for `unit`, `e2e` and `truffle` contracts testing.1. `unit` and `e2e` tests.
```
npm run test/dapp
```2. `truffle` contracts tests.
```
npm run test/truffle
```3. Alternatively you can directly run `unit`, `e2e` and `truffle` contracts tests in one command.
```
npm run test
```## Build for production
To build the application for production, use the build command. A production build will be compiled in the `dist` folder.
```javascript
npm run build
```## Issues
Please send any bug issues or proposal for improvement to [Issues](https://github.com/wespr/truffle-vue/issues).