From ideas to actions. The unofficial platform designed for the Stronghold (SHx) community.
@dashxboard/db handles database connections and migrations for the Dashboard platform.
Include this package as a dependency in the package.json
files for the @dashxboard/web
and @dashxboard/bot
repositories:
"dependencies": {
"@dashxboard/db": "git+https://${GITHUB_TOKEN}:[email protected]/dashxboard/dashxboard-db.git#main"
}
Import the database as a standalone package:
import { db } from "@dashxboard/db";
npm run build
— Compiles the package.npm run migrate
— Executes database migrations.npm run migrate: down
— Rolls back the last migration.npm run migrate:list
— Displays a list of all migrations.
Dashxboard is open-source, and contributions are welcome! You can help by:
- Submitting pull requests (for minor changes).
- Reporting bugs or suggesting features (for major changes).
- Enhancing the documentation.
- Engaging with the community on Discord.
This project is licensed under the MIT license.