30 lines
589 B
Markdown
30 lines
589 B
Markdown
# Setup
|
|
|
|
Install MariaDB/MySQL
|
|
Install Git
|
|
Install Node 19+
|
|
|
|
npm install --legacy-peer-deps
|
|
|
|
create database trigger_database;
|
|
grant all privileges on trigger_database.* TO 'triggeradmin'@'localhost' identified by 'trigger';
|
|
flush privileges;
|
|
|
|
import defaultDatabase.sql into your database server
|
|
|
|
To run:
|
|
npm run dev
|
|
|
|
To build:
|
|
Add any background images to public/backgrounds to include them in the build
|
|
npm run build
|
|
|
|
Run with pm2:
|
|
npm install -g pm2
|
|
sudo pm2 serve ./dist --no-daemon --spa --port 3000
|
|
sudo pm2 start server.cjs
|
|
|
|
# TODO
|
|
- Image uploads for backgrounds
|
|
|
|
- Improve mobile |