Skip to content

@dashxboard/db — database connection for the Dashxboard platform.

License

Notifications You must be signed in to change notification settings

dashxboard/dashxboard-db

Repository files navigation

Dashxboard — @dashxboard/db

From ideas to actions. The unofficial platform designed for the Stronghold (SHx) community.

WebsiteDiscordGitHub

Overview

@dashxboard/db handles database connections and migrations for the Dashboard platform.

Installation

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"
  }

Usage

Import the database as a standalone package:

import { db } from "@dashxboard/db";

Scripts

  • 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.

Contributing

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.

License

This project is licensed under the MIT license.

About

@dashxboard/db — database connection for the Dashxboard platform.

Resources

License

Stars

Watchers

Forks

Packages

No packages published