Console Kit
Azion Console Kit is a front-end development kit used for crafting a customized Azion Console interface. It’s developed with the Vue/Vite and Tailwind frameworks, as well as the PrimeVue component library. This kit is built upon the Azion API and supports multi-tenancy, which allows you to integrate the Azion Edge Computing Platform with your own APIs.
You can use Console Kit to provide a customized experience for developers by creating your own theme or rearranging UI components according to your business needs. Console Kit follows a simple and organized structure with layered separation of blocks, components, and services, promoting a clean and maintainable codebase.
The Console Kit is available on the Github repository.
Implementation
Check the full list of requirements and installation and configuration guides in the Console Kit repository on GitHub.
Requirements
- Install Node.js by downloading the executable.
- Open a terminal and run the following command to check the versions of the packages installed.
- Now run the following command to install the Yarn package manager:
Setting up a project
- To create your own version of the Azion Console, fork the repository into your account.
- On the homepage of the forked repository, click Code and copy the HTTPS git URI.
- Launch your terminal and paste your repository URI through the following command, ensuring you have Git installed:
- Navigate to the console kit folder:
- Run the following command to update the project:
- Run this command to launch the project locally:
Configuring environment variables
For a faster setup, generate a personal token in Azion Console and save it in a .env.development
file:
By default, Azion Console Kit uses the STAGE
stack to connect with Azion APIs. To point your application to the PRODUCTION
stack, add the following command in the .env.development
file:
Deploying the Console Kit to the edge
Azion Console Kit can run natively on Azion’s edge using the Azion CLI (version >= 0.70.0). To do so, follow these steps:
- Download and install the Azion CLI using your preferred method.
- Configure your personal token on the CLI:
- Run the following command with
sudo
privileges:
- Respond to the prompts as needed.
- Once you deploy your application, the CLI will generate an edge application domain in the format
https://xxxxxxxxxx.map.azionedge.net
with the Console Kit project running.
Use Cases
Refer to the guides below for more information on Console Kit use cases:
- How to customize the Azion Console interface using the Console Kit
- How to integrate the Azion Console and the Azion API using the Console Kit