This repo contains Titanium's web dashboard. It communicates with the local Titanium API to facilitate communication between the bot, database and web UI. Follow the steps below to get started:
Important
Due to developer workload, I am only accepting PRs for minor features or bug fixes at this time. Please create an issue or discussion first in the main Titanium repo before creating a PR, to allow me to review your request.
- run
pnpm installto install required packages - copy the provided
.env.examplefile, name it.envand fill in any required information - run
pnpm run db:migrateto create the database and required tables - run
pnpm run buildto build server files for production - run
node build --env-file=.envto run the server
- run
pnpm installto install required packages - copy the provided
.env.examplefile, name it.envand fill in any required information - run
pnpm run db:migrateto create the database and required tables - run
pnpm run devto start the dev server
You will need to download Twimojis separately as I do not ship these with the dashboard. You can download all emoji SVG files from the Twimoji GitHub repo, then place them in static/emojis. When you next start the dev server or build the dashboard, all emojis in the emoji picker will resolve.
If the database changes, you will need to migrate the database using Drizzle.
To generate a migration file, run pnpm run db:generate. This will generate a migration file and place it in the drizzle folder.
To complete the migration to the new database schema, run pnpm run db:migrate. This will run all required migration files on the database to bring it in line with the latest schema.