Run the landing page locally
Get the landing page running on your computer with two Docker commands.
Before you start: install and open Docker Desktop, or Docker Engine on Linux. Nothing else is needed.
View requirementsDownload the template
Open the template's page on aniq-ui.com and press Get Free. Enter your name and email: you land in your dashboard, where My templates has the ZIP.
Expected result: A file named like
landing-page-template-2-main-….zipis in your downloads.Unzip and open the folder
Extract the ZIP and open a terminal in the
landing-page-template-2folder. On Windows, extract it in File Explorer, then open a terminal in the folder.Terminalunzip landing-page-template-2-*.zip cd landing-page-template-2Expected result: The folder lists
Having trouble?Dockerfile,package.json,messages,publicandsrc.Build the image
Docker installs the dependencies and builds the site inside the image. The first build takes a few minutes and needs an internet connection; later builds reuse what did not change.
Terminalinlanding-page-template-2docker build -t saas-landing .Expected result: The build ends with a line naming the image
Having trouble?saas-landing.Start it and open the page
Start a container from the image, then open localhost:3030Local. Leave the terminal open while you use it.
Terminalinlanding-page-template-2docker run -p 3030:3030 saas-landingA port is already in use?
If the start stops with
A port is already in useports are not available ... address 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 saas-landing, then localhost:3041Local.Expected result: The landing page opens in English, or in Arabic when your browser prefers Arabic. The other language is one click away in the header.
Having trouble?
Stop and start again
Press Ctrl+C in the terminal to stop the site. 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 saas-landing. 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 two optional settings are compiled into the page when the image is built, so they are build arguments, not docker run options:
landing-page-template-2docker build -t saas-landing --build-arg NEXT_PUBLIC_SITE_URL=https://www.your-domain.com .