If you are trying to simply use Spire, download the latest release. Place the executable in your EQEmulator Server directory and simply run. That's it. No dependencies, no extra steps.
If you want to run Spire without an EQEmu server installation, place it in a folder alongside a eqemu_config.json with database information to connect to your MySQL server and it will connect all the same.
Spire is currently only to be used as a local development tool, it is not safe to host publicly without protected access.
These are instructions for those who are looking to develop on Spire. If you are just trying to use the tool then see using Spire
TODO
For Windows development environment, install the following pre-requisites before proceeding with the next steps
- Install Windows Git (For Git Bash)
- Install Docker you may need to install additional kernel components for WSL2 which will be instructed in the Docker installation
All other necessary software gets automatically installed through the subsequent automated steps
Clone Spire to a directory of your choosing
git clone https://github.com/Akkadius/spire.git
Once you have your pre-requisites installed you will need to run windows-init.bat on the top level folder as administrator
This init step will perform the following automatically
- Install Choco a package manager for Windows
- Install Golang
- Install NodeJS LTS version
- Install Make for make commands
- Copies
.bashrc.bash_profilefiles to ~/ home directory - Copies
.wslconfigto ~/ home directory - Initializes the Frontend
./frontend/.env.example.windowsasfrontend/.env(Tells the development webserver where to route API calls for development) - Initializes the Backend
.env.devto.env - Launches a Git Bash (MinGW) shell when done for the following steps
In a MinGW shell, which you should have after Windows Init batch file is done running - you run the following command
make install
If you don't have a MinGW window already open from the previous step; either click the windows-bash.bat alias or launch a "Git Bash" instance yourself through the Windows Start Menu and cd to the Spire folder
Make install will do the following things automatically
- Build the
workspacedocker image; the workspace contains Go and many other utilities installed and fully working out of the box. For windows users we will try to run as many things on the host as much as possible to avoid performance or compatibility issues. This can be bashed into usingwindows-workspace-bash.bat - Build the
mysqldocker image which will contain a basicmariadbinstance with a relatively tuned database configuration - Initializes a local MariaDB instance that you can access from localhost port
33066(Note the extra 6 so we don't conflict with a local install) - Creates local databases
peqandspire - Seeds the latest ProjectEQ database for development purposes to the local
peqdatabase - Seeds the local Spire database tables to the
spiredatabase
At this point the installation should be complete and you should have everything that you need to develop. For good measure and because this is Windows we're talking about, you should probably reboot
To run the backend and frontend development servers in Windows; there are simply two top level batch scripts that you can run
windows-backend-web.batThis will run the Golang backend web process on port 3001 (in windows) and will reload when any changes are made to the codebasewindows-frontend-web-dev.batThis will run the NodeJS Webpack watcher which will serve the frontend web development instance and will hot reload any changes made to the frontend codebase on the fly
Both of these scripts are designed to kill an already running instance when it is ran again