Skip to content

aziontech/azion-console-kit

Azion Console Kit πŸ’»πŸš€πŸ§‘

Introduction πŸ“–

Azion Console Kit is a front-end development kit made in Vue/Vite with the PrimeVue and Tailwind framework that allows you to run a customized Azion Console interface.

This project was developed by Azion, an edge computing platform that allows you to build and run applications anywhere. You'll find our products and services on it. πŸš€

Getting Started πŸ”›

Requirements

Before you begin, ensure that you have the following:

If you are not a JS developer and don't want to install yarn and node, you can use Docker:

alias yarn="docker run -it --rm -p 5173:5173 -v $HOME:/root -v $PWD:/usr/src/app -w /usr/src/app node:18 yarn"

Setup

  1. Clone the repository and navigate to the root folder.

    git clone git@github.com:aziontech/azion-console-kit.git
    cd azion-console-kit
  2. Install dependencies and start the project:

     $ yarn install
     $ yarn dev --host

The console becomes available at http://localhost:5173.

Configuration πŸ’»

Skipping login with a personal token

To avoid login screen, you can create a personal token via Azion Console and save it in a .env.development file:

echo 'VITE_PERSONAL_TOKEN=PERSONALTOKEN' > .env.development

Setting the API environment (STAGE/PRODUCTION)

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:

VITE_ENVIRONMENT='PRODUCTION'

Running on the Edge πŸš€

Azion Console Kit can run natively on Azion's edge using Azion CLI. Follow these steps:

  1. Download the Azion CLI here and configure your personal token:

    azion -t ${PERSONAL_TOKEN}
  2. Link project to an Azion edge application.

    azion link

    Choose the Vue preset.

  3. Publish your project to create the application's domain:

    azion deploy

    This step is responsible for deploying your base project and creating a domain. This domain will be later on used to implement the configuration rules.

    πŸ’‘ Tip: You can use the --config-dir argument to separate project environments. The CLI will use the reference to store application states. If you don't need two environments, don't pass the argument and it will use the original reference.

After a few seconds, access your project on the domain provided by the CLI.

Features 🧩

Azion Console Kit includes the following features:

  • Multi-tenancy: build your Azion Console by consuming endpoints from the Azion Public API.
  • Customizable UI: configure theme tokens or generate them automatically via the Builder, giving the UI the look and feel you need.
  • Simple structure: layered separation of blocks, components, and services for easy route building.

Contributions 🀝

Before beginning development or contributing to the project, familiarize yourself with the following resources:

  • Contributor Guide (CONTRIBUTING.md): learn how to contribute to this project and the processes to do so.
  • Development Guide (DEVELOPER.md): learn how to set up your development environment.
  • Security Guide (SECURITY.md): learn about the secutiry validaton process.
  • Contributor Covenant Code of Conduct (CODE_OF_CONDUCT): understand how to maintain the quality and integrity of the project.

Community πŸ’¬

You can find us on:

Move to the Edge! 🌎➑️🧑