


This box can help to scaffold a new contract development. It generates a ledger(register) contract with customizable fields, unit tests and ready-to-use front end Vue app with CRUD functionality.
Here is 🚀 Live Demo
UI files are also gerenated, take a look:
-
Install Truffle globally.
npm install -g truffle
-
Download the box. This also takes care of installing the necessary dependencies.
truffle unbox melnikaite/app-generator-vue
-
Generate entity
node agv.js --model Team --fields '[{"team":"string"},{"lead":"string"},{"size":"string"},{"description":"string"},{"github":"string"}]' on Windows please use \" node agv.js --model Team --fields '[{\"team\":\"string\"},{\"lead\":\"string\"},{\"size\":\"string\"},{\"description\":\"string\"},{\"github\":\"string\"}]'
-
start Ganache on port 7545.
-
Run truffle migrate to compile and deploy contract to the development environment.
migrate
-
Run tests
truffle test ./test/team.js
-
Run the development server (outside the development console) for front-end hot reloading. Smart contract changes must be manually recompiled and migrated.
npm run dev
-
Open entity page
http://localhost:8080/#/teams
https://app-generator-vue.s3.eu-central-1.amazonaws.com/index.html#/teams
npm run build
aws s3 sync dist s3://app-generator-vue --acl public-read
0x63CE9f57E2e4B41d3451DEc20dDB89143fD755bB
0x424988F9443eaE0AD0a23DffBD096E9F21598384
0xA68D58B5a556eDf1eBE09eDA55DdE034b8b4Df61

Leave a Reply