Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

CloudStruct Frontend for VM

License

Notifications You must be signed in to change notification settings

blinklabs-io/cloudstruct-vm-frontend

Repository files navigation

vm-frontend

Welcome to the CloudStruct VM Frontend!

About

The code is split into two projects, an Express API which serves as a backend for the frontend, and a React UI which is built into static assets.

This is intended for use via Docker.

Within this repository is an Ansible playbook to install Docker on the local machine and run the containers. You can disable installing Docker by setting MANAGE_DOCKER=false in .env.

Usage

./runme.sh

Dev usage

You can run npm install and npm run from the client, server, and root folders as needed. The preferred way for testing us npm run dev from the root folder. There's a readme on the client folder you should check out.

Project uses NPM version 16. Most accurate results are obtained runnning the docker image.

Logging

Access logging is enabled in the server. It uses Morgan and the type of logs which are output can be controlled by setting LOG_TYPE to a valid Morgan log type, such as LOG_TYPE=combined for Apache Combined Log Format.

Mainnet

For Mainnet, you'll want to set the following variables to point to a mainnet instance of the backends. Also, make sure API token (and PSK) matches mainnet.

AIRDROP_ENABLED=false
CARDANO_NETWORK=mainnet
KOIOS_URL=https://api.koios.rest/api/v0
VM_URL=https://vm.adaseal.eu