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. 🚀
Before you begin, ensure that you have the following:
- Clone the repository and navigate to the root folder.
git clone git@github.com:aziontech/azion-console-kit.git
cd azion-console-kit
- Install dependencies and start the project:
$ yarn install
$ yarn dev --host
The webapp becomes available at http://localhost:5173.
If you prefer not to run things on your machine, 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"
For a faster setup, create a personal token via Azion Console and save it in a .env.development
file:
echo 'VITE_PERSONAL_TOKEN=PERSONALTOKEN' > .env.development
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'
Azion Console Kit can run natively on Azion's edge using Azion CLI (version >= 0.70.0). Follow these steps:
- Download and configure Azion CLI with a personal token:
curl https://downloads.azion.com/linux/x86_64/azioncli -o azioncli && chmod +x azioncli
./azioncli configure -t PERSONALTOKEN
- Build the bundler and copy the content from
dist
to.edge/statics
yarn build
mkdir -p .edge/statics && cp -r ./dist/* .edge/statics
- Publish the edge application:
azioncli edge_applications init --name azion-platform-kit --type vue --mode deliver
azioncli edge_applications publish --debug
After a few seconds, access your project on the domain provided by the CLI:
$ azioncli edge_applications publish
Uploading static files
[##########] 100 .edge/statics/index.html Upload completed successfully!
Created Edge Function PLATFORM-KIT-1 with ID 10908
Created Edge Application PLATFORM-KIT-1 with ID 1694694931
Created Domain PLATFORM-KIT-1 with ID 1694690266
Created Cache Settings for web application
Created Rules Engine for web application
Your Edge Application was published successfully
To visualize your application access the domain: https://ajahphrqah.map.azionedge.net
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.
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.
You can find us on:
Move to the Edge! 🌎➡️🧡