altamoon-hello-world-react
v0.4.4
Published
Hello world example plugin for Altamoon made with React, Webpack and TypeScript
Downloads
2
Readme
altamoon-hello-world-react
An altamoon plugin example powered by TypeScript, Webpack and React
The plugin provides basic functionality to buy or sell given quantity of tokens (as well as the basic hello-world example).
It also demonstrates how to implement plugin settings. At this case it does nothing more than Buy and Sell button size change.
Install
To install the plugin select "Plugins" at Altamoon UI, paste altamoon-hello-world-react
to "Add custom plugin" field and click "Add plugin"
Develop
- Install NodeJS
- Clone the repository and go the plugin folder (
cd altamoon-plugins/packages/hello-world-react
). - Run
npm ci
to install dependencies. - Run
npm start
to start Webpack Dev Server - Use "Add custom plugin" Altamoon feature and paste
http://localhost:8081/bundle.js
to add the plugin.
The example supports Hot Module Replacement intended to make plugin development faster.