Getting started
Speculare Dashboard it the UI and front-end of the whole infrastructure. It will gather data from Speculare Server and PGCDC for real-time update.
Setup
Speculare Dashboard if a Vue 3 app which means it's basically just a simple static website. The recommended way to host it is to use NGINX, this is the way we'll cover in this guide.
Install dependencies
We recommend you to use NodeJS 15+.
Setup an env file
The dashboard need an .env
file before being build. The value in the .env
file will be bundled with the app once the production build occur, so do not store any secret in it.
You can simply copy the .env.example
into .env
and edit the values.
Build the production project
You can now build the production files using:
This will produce a dist
folder which holds all files needed for the production website. This folder can be placed anywhere.
For the sake of this demo we'll assume it's located in /root/speculare-dashboard/dist_current
.
Last updated