A faction map tool written with Svelte, Threlte, TypeScript, TailwindCSS, and Font Awesome.
In order to use Valkey for caching, make sure Valkey is installed and enable it before building by creating a file called .env.local
and putting in the line:
VITE_USE_VALKEY=true
(You can also set VITE_VALKEY_HOST
and VITE_VALKEY_PORT
to use non-default connection information.)
To run the EDDN listener for Powerplay alerts, also put in:
VITE_RUN_LISTENER=true
This project uses PNPM as the intended package manager. To use the codebase:
pnpm i # Install dependencies
pnpm dev # Run dev server
pnpm build # Build for production
node build # Run production build
Create pm2.config.cjs
, e.g.:
module.exports = {
apps: [
{
name: "edbgs-map",
script: "build/index.js",
env: {
PORT: 8000,
HOST: "127.0.0.1",
ORIGIN: "https://www.example.com",
},
time: true,
},
],
};
Then, you can use:
pm2 start pm2.config.cjs # To run
pm2 restart pm2.config.cjs # To restart