HollaEx®
⚙️ DashboardStart →
  • HollaEx® — The Crypto Exchange Solution
  • ☁️Cloud Operators
    • Launching the Exchange
    • Setting Domain for Cloud Exchanges
    • Easy SMTP for Cloud Exchanges
    • SEO Settings for Cloud Exchanges
      • SEO Advanced Settings
  • ⚙️Operating Your Exchange
    • Operator Control Panel
      • General
      • Users
      • User Profile
      • Assets
      • Markets
      • Stakes
      • Sessions
      • Plugins Apps
      • Trading Fees & Account Tiers
      • Roles
      • Chat
      • Billing
    • Customize Exchange
      • Browser Tools
        • Enter Edit Mode
        • Operator Controls (Visuals)
        • Console
      • Plugins
      • Forked Repo
    • Fiat Controls
      • Initial Setup
      • Setting Up Fiat On/ Off Ramp
      • Editing Deposit & Withdrawal Fees
      • Users Making Fiat Deposit
      • Users Trading With Fiat
      • User Making Fiat Withdrawal
    • Staking
    • OTC Broker
    • P2P
      • P2P Overview
      • P2P Setup
      • P2P Troubleshooting
      • P2P Vendor Flow
    • Smart Chain Trading
    • Assets & Trading Pairs
      • Add New Assets & Trading Pairs
      • Configure Pair Parameters
    • Set up the SMTP Email
      • Set up SMTP with AWS SES
      • Set up SMTP with Mailgun
      • Set up SMTP with SendGrid
      • Test the SMTP with Gmail
    • Enabling reCAPTCHA
    • Email Customization & Audit
    • DeFi Asset Staking Process
  • 🧩Plugins
    • HollaEx Plugins
      • Announcements
      • Bank
      • AWS SNS (Text Messages - SMS)
      • KYC
      • Automatic KYC
      • Messente
      • Advanced Referral
      • CoinMarketCap
      • Guardarian
    • Install Plugins
    • Developing Plugins
      • Development Walkthrough: Hello-Plugin
        • Initialization
        • Configuration
        • Scripting
        • Web View
        • The Final Product & Installation
      • Advanced
        • Initialization
        • Config
        • Server Script
        • Plugin Libraries
        • Web View
        • Final Plugin Product
        • Advanced Tutorial: Using the user meta field
        • Advanced Tutorial: Adding a new database table column
        • Advanced Tutorial: Creating a new database table
      • Simple Wallet Example
      • Web View Development
        • Overview
        • External dependencies
        • Getting started
        • Basic Tutorial: Hello Exchange Plugin web view
        • Advanced Tutorial: KYC Plugin web views
    • Bank Integration
      • Handling Deposits
      • Handling Withdrawals
  • 👷Developers
    • API Guide
      • API Example Scripts
    • Run Dev Mode
    • Build a New Front-end Interface
  • 🧰On-Premise Operators (Advanced Only)
    • On-Premise Exchange Setup
      • Getting Started — Requirements
      • Installation
      • Server Setup
      • Web Setup
      • Production
    • CLI How-Tos
      • Start Exchange
      • Stop Exchange
      • Upgrade Exchange
        • Build and Apply the Code Changes
      • Get Exchange Logs
      • Get a Backup and Restore
      • Exchange Migration
      • Command List
    • Run Exchange on Kubernetes
    • Troubleshooting Guide
  • 🚀Advanced
    • SEO Optimization
    • Nginx
    • Rate Limits
    • Database
      • Upgrade Database
    • Dependencies
    • Contents Delivery Network
      • Cloudflare CDN for HollaEx
      • CloudFront CDN for HollaEx
    • Load Balancer
      • AWS ELB
      • DigitalOcean LB
    • Customize Kubenretes Ingress
    • Exchange Keys
      • Exchange API Keys Troubleshoot
    • HollaEx on non-Linux
      • HollaEx on Windows
      • HollaEx on macOS
    • The Network Tool Library
      • Accessing the Network Tool Library
      • Functions
        • WebSocket
      • Simple Example: Creating a User and Wallet
      • Getting More Interesting: Orders with the Tools
        • Setup: Using the transferAsset function
        • Creating and Monitoring a Sell Order
        • Settling Fees
      • Private HollaEx Network
    • Docker Content Trust (DCT)
    • Revenue Sharing
  • 📦Releases
    • Release Notes
    • Side Notes
  • ➡️External Links
  • Blogs
  • Forum
  • Videos
  • Twitter X
  • Telegram
  • Interactive Demo
  • Discord Community
  • API Documentation
  • Tools Library Documentation
  • Node Library Documentation
  • Plugins Documentation
Powered by GitBook
On this page
  1. Plugins
  2. Developing Plugins
  3. Development Walkthrough: Hello-Plugin

Configuration

The config.json file we will create lays the basic foundation of out plugin, its name, author, description etc.

PreviousInitializationNextScripting

Last updated 2 years ago

Check the for a more in-depth look at what exactly the config.json file is, and a description of the attributes.

With the hello-plugin created within our HollaEx Kit folder, we can start building theconfig.json file with all the basic information needed, good idea here to get out your IDE of choice.

  1. Create a file namedconfig.json inside the server/ directory of the newly-created hello-plugin plugin.

  2. Copy and paste the following code into this newly created file:

Click here for the config.json code for hello-plugin
{
    "name": "hello-plugin",
    "version": 1,
    "type": null,
    "author": "You",
    "bio": "A short description",
    "description": "This is a longer description of your first plugin",
	"documentation": null,
	"logo": null,
	"icon": null,
	"url": null,
    "public_meta": {
        "public_message": {
          "type": "string",
          "required": false,
          "description": "I can be seen by anyone!",
          "value": "Hello, this text is from the plugin!"
        }
      },
      "meta": {
        "private_message": {
          "type": "string",
          "required": false,
          "description": "I can only be seen by some!",
          "value": "Hi, this is the secret text from the plugin!"
		}
	},
	"prescript": {
		"install": ["hello-world-npm"],
		"run": null
	},
	"postscript": {
		"run": null
	}
}

And that's all for what we need to do on this page!

What Did We Just Do?

Looking at the interesting bits of the config.json we can see what we have actually defined.

{
  "name": "hello-plugin",
  "version": 1,
  "type": null,
  "author": "You",
  "bio": "A short description",
  "description": "This is a longer description of your first plugin",
    ...
}

The top part of the code we see above is fairly simple. We have defined the name, version, and author of the plugin (hello-plugin, on version 1, written by 'You'), as well as created its bio - a quick description, and the description - a more detailed description seen on the plugins page.

Documentation, logo, icon, and url are all set to null at the moment so we will ignore them for now.

{
    ...
    "public_meta": {
      "public_message": {
        "type": "string",
        "required": false,
        "description": "I can be seen by anyone!",
        "value": "Hello, this text is from the plugin!"
      }
    },
    "meta": {
      "private_message": {
        "type": "string",
        "required": false,
        "description": "I can only be seen by some!",
        "value": "Hi, this is the secret text from the plugin!"
      }
    },
    ...
}

Moving to the next code chunk, we find public-meta and meta.

For hello-plugin, we have one object within both public-meta and meta, public-message and private_message respectively, both being fairly similar.

  • type : This defines the (surprisingly) type of the object, out of four allowed types (number, string, boolean, and date-time). In hello-plugin, both public-meta and meta objects will be strings

  • required : Neither of these values are strictly required for hello-plugin to run

  • description is the description of the values, here we are reminded that public-meta is not a secret and meta is a secret object.

  • value : Here we find the strings our plugin will actually use. We will see these values actually on the exchange in the appropriate places later.

{
    ...
"prescript": {
    "install": ["hello-world-npm"],
    "run": null
  },
  "postscript": {
    "run": null
  }
    ...
}

At the end of our code, we have the prescript and postscript. In hello-plugin all that will be installed is the hello-world-npm package before the plugin is live.

Continue onto the , or read below for a bit more understanding of what this new config.json is actually doing.

Check the list , for full definitions of each element

Again for a more in-depth view of what these are, check the . Bothpublic-meta and meta are core aspects of plugins, so it's good to have a solid understanding of them.

🧩
next step
on this page
main config page
'Advanced/ Config' page