Git Product home page Git Product logo

aepp-boilerplate-vue's Introduction

Boilerplate Aepp Vue.JS Frontend

This boilerplate is designed to allow everyone an easy start when building an aepp on top of the aeternity eco system. It contains three critical parts:

Get started

Clone repo via git or use the template button above.

Install the dependencies

npm install

For development purposes (hot-reloading)

npm run serve

To build the bundle for production

npm run build

For running the integration tests

npm run lint

Main Features

Custom build pipeline

We engineered this pipeline config to be as versatile as possible while still being completely transparent to the developer as there are no hidden config files and a minimal set of presets where necessary.

webpack.\*.js: Most of the configuration can be found in webpack.common.js. This file will be then, based on the npm command you run, be merged with the respective additional webpack config file. The dev file adds the dev server options and skips the postcss css usage based purging of classes. The prod file adds the purging back in and can be used to further optimize the build. The test file allows the private and public key to be inserted in the wallet search file, which in turn enables testing without an external wallet provider.

We also have a non active branch where the custom build pipeline is replaced with a preconfigured vue-cli version. We decided against this due to the intransparency of the vue-cli presets and no performance or size improvements compared to the custom pipeline.

Easy wallet discovery

AEX-2 is an extension proposal to standardize the wallet to aepp communication. As of this writing it has been withdrawn but is still the reference implementation provided by the js-sdk. Since we aim to make this boilerplate as universally connective as possible, we also implemented the client side protocol for this standard in the file src/utils/walletSearch.js. It is up to the developer to decide if it should be activated and used. To active simply use call the init() function in App.vue. Currently only either the wallet discovery provided in aeternity.js or the wallet discovery from walletSearch.js can be active. This might be changed in the future or if a new standard emerges.

SDK and aepp-components integration

Both of these packages are imported and should work out of the box with this implementation. An initialized client is provided by the aeternity.js file described earlier at aeternity.client, if a wallet has been discovered. The aepp-components should be similarly easy to use by just importing the required components and using them in your html. An example can be found in src/views/Home.vue.

aepp-boilerplate-vue's People

Contributors

ifaouibadi avatar kenodressel avatar marc0olo avatar the-icarus avatar thepiwo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.