Skip to content

yordii/trax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trax Editor

Before installation:

Copy the RCON plugin to your emulator plugins folder, and run the required database sql in the required folder

Installation

1. Client

Open "client" in terminal/cmd prompt etc

npm run build

It has created "dist" Copy the <script>'s from the index.html paste into your cms or nitro's index.html

Paste this div above the scripts you just pasted

<div id="le-trax"></div>

Copy the <link href=""/> from index.html to your nitro index.html

Copy the JS/css folders and traxEditorConfig.json created in "dist" to your cms/nitro directory

The SSO will be passed similarly to nitro

(for nitro)

<script>
  window.TraxConfig = {
    sso: (new URLSearchParams(window.location.search).get('sso') || null)
  }
</script>

(for any cms)

<script>
  window.TraxConfig = {
    sso: '<?php  $PutYourShitCodeHere; ?>'
  }
</script>

Set the API in traxEditorConfig.json to the subdomain you create in step 2

2. Server

Open "server" in terminal/cmd prompt etc

npm start
You will need to create a reverse proxy in IIS or NGINX etc
IIS

Create a subdomain under cloudflare or your domain provider Create a "Site" in IIS, click URL Rewrite image

Add a new rule (top right) image image

Set the IP Address/url localhost:9999 9999 is the default port image

About

traxi api using express/RCON and a vue frontend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Vue 27.2%
  • SCSS 25.0%
  • JavaScript 23.4%
  • TypeScript 22.9%
  • HTML 1.5%