0.1.0 • Published 24 days ago

@nextlinux/tradeui v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
24 days ago

TradeUI

Open in Visual Studio Code TradeUI CI

Tradescope UI build with Vue.js and boostrap-vue.

WARNING

This project is still in its early stages (consider it alpha), and is not yet stable nor recommended to be used for production usages.

Run this project

Using TradeUI, does require tradescope to be setup and running. In newer versions (2021.2 and newer), tradeUI is builtin to tradescope, so manual setup of tradeUI will no longer be necessary unless you want to modify tradeUI. Instructions for this end-user setup can be found in the tradescope API documentation.

Developer project setup

It will require tradescope to be running on the same host with the API enabled under (localhost:8080). You can either use the webpack proxy (port can be changed in vue.config.js) - or connect directly to the API (recommended).

You will also have to have CORS for tradescope configured correctly based on the tradescope documentation. Most likely, the correct entry will be http://localhost:3000 or http://127.0.0.1:3000 - but the URL must match the URL you use to access TradeUI. Ports can vary, so check the URL you're using.

Project setup

yarn install

Compiles and hot-reloads for development

yarn dev

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Build and run docker version

docker-compose build
docker-compose up -d

# Access using http://localhost:3000/

Customize configuration

See Configuration Reference.

Project setup for docker (developing inside dev container) without vscode

Built dev docker image and run container(s) detached

cd .devcontainer
docker-compose up -d

Go inside web-service container and serve

docker-compose exec web /bin/bash

then

yarn dev

Project setup for vscode and docker (developing inside dev container) on Linux

The goal is to have a complete dev environment very quickly and isolated.

Install missing tools if needed

Follow getting started section.

Build your dev container

View > Command palette > Enter: Remote-Containers rebuild container

Serve your local server

yarn dev

You now have useful vscode extensions, git support, your command history of the project.

Fix cypress errors

Depending on the system configuration (node version, ...), there can failures when starting cypress. This can be mitigated by using the following environment variable.

export NODE_OPTIONS=--openssl-legacy-provider