A faction map tool written with Svelte, Threlte, TypeScript, TailwindCSS, and Font Awesome.
In order to use Valkey for caching, enable it before building by creating a file called .env.local
and put in the line:
VITE_USE_VALKEY=true
(You can also set VITE_VALKEY_HOST
and VITE_VALKEY_PORT
to use non-default connection information.)
This 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",
},
},
],
};
Then, you can use:
pm2 start pm2.config.cjs # To run
pm2 restart pm2.config.cjs # To restart