Thorium-Sim / luminave-server

Provide an API for the luminave frontend and everything that wants to use luminave

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

luminave-server

Provide an API for the luminave frontend and everything that wants to use luminave

Build Status

Table of Contents


Setup

  • Clone this repository
  • Install the dev dependencies by executing npm install inside the repository
  • Start the server with npm start

Config

If you want to change the host & port of the luminave-server, you have to create a .env file inside the luminave-server folder.

Example .env

HOST=localhost
PORT=4000

Use with luminave & Thorium

  • Start luminave-server with npm start
  • Start Thorium server with npm start
  • Start luminave-thorium with npm start
  • Create a flight in Thorium at http://localhost:3000
  • Add the luminave-thorium as a client to the created flight
    • This is only possible because luminave-thorium has the word ECS in it's Thorium-clientId (which is the default in luminave-thorium/src/constans/index.js))
  • In the Thorium interface: Go to Core
    • On the left you can find a radar, the light controls are directly underneath
    • Change a color an see it also changed in luminave in an auto-generated animation
  • In the luminave interface: Open the navigation on the right
    • Find the luminave-server headline
    • Set the URL using the host & port configured for the luminave-server (default is ws://localhost:4000/graphql)
    • Click on the connect button
    • The icon besides the URL input should show a ❤️ emoji, if not then it will display an error message
      • More detailed error message will be visible in the dev console of the browser

About

Provide an API for the luminave frontend and everything that wants to use luminave

License:MIT License


Languages

Language:JavaScript 100.0%