Run the dashboard locally
Get the financial dashboard running on your computer with two Docker commands, then sign in.
Before you start: install and open Docker Desktop, or Docker Engine on Linux. Nothing else is needed.
View requirementsDownload your template
Open My templates in your Aniq UI dashboard and download the ZIP.
Expected result: A file named like
dashboard-template-1-main-….zipis in your downloads.Unzip and open the folder
Extract the ZIP and open a terminal in the
dashboard-template-1folder. On Windows, extract it in File Explorer, then open a terminal in the folder.Terminalunzip dashboard-template-1-*.zip cd dashboard-template-1Expected result: The folder lists
Having trouble?Dockerfile,package.json,messages,publicandsrc.Build the image
Docker installs the dependencies and builds the dashboard inside the image. The first build takes a few minutes and needs an internet connection; later builds reuse what did not change.
Terminalindashboard-template-1docker build -t financial-dashboard .Expected result: The build ends with a line naming the image
Having trouble?financial-dashboard.Start it and open the dashboard
Start a container from the image, then open localhost:3030/
en/ loginLocal. Leave the terminal open while you use it. Terminalindashboard-template-1docker run -p 3030:3030 financial-dashboardA port is already in use?
If the start stops with
A port is already in useport is already allocatedoraddress already in use, another program uses port 3030. Either stop it, or change the number on the left of-pand open that port instead:docker run -p 3041:3030 financial-dashboard, then localhost:3041Local.Expected result: The sign-in page opens in English. Sign in with the details below and the overview opens.
Having trouble?
Sign in
The dashboard ships with one account:
| Password | |
|---|---|
admin@dashboard.com | Admin@123 |
The account is a placeholder, checked in your browser. Replace it with your own sign-in before you go live.
Stop and start again
Press Ctrl+C in the terminal to stop the dashboard. If you closed that terminal, find the container and stop it:
docker ps
docker stop <container-id>Use the ID that docker ps lists for financial-dashboard. To start again, run the same docker run command; the image is already built.
After you change a file, build the image again before you run it. The image holds a copy of the code from when it was built.
Your own settings
The settings are compiled into the app when the image is built, so they are build arguments, not docker run options. For example, to build with demo mode on:
dashboard-template-1docker build -t financial-dashboard --build-arg NEXT_PUBLIC_DEMO_MODE=true .