Deploying the web frontend lets users access Ogmara through a browser on your domain. The web app is a static single-page application (SPA) that connects to your L2 node's API.
Prerequisite: you've completed Install — Docker or Install — Source, plus the Configuration page. You'll also need Node.js installed (see Server Preparation).
# Clone and build the SDK (shared library used by the web app)
git clone https://github.com/Ogmara/sdk-js.git
cd sdk-js
npm install
npm run build
cd ..
# Clone and build the web frontend
git clone https://github.com/Ogmara/web.git
cd web
npm install
# Link the local SDK
npm link ../sdk-js
# Build for production
npm run build
Copy the built files to a directory that your web server can serve. The standard location is under /var/www/ogmara/app/.
# Create the web root directory
sudo mkdir -p /var/www/ogmara/app
# Copy the built files
sudo cp -r web/dist/* /var/www/ogmara/app/
# Set correct ownership and permissions
sudo chown -R www-data:www-data /var/www/ogmara
sudo chmod -R 755 /var/www/ogmara
The web app is a static SPA. It does not need a Node.js server in production — it is served as plain HTML, CSS, and JavaScript files by your reverse proxy (configured in the next step).