Repository navigation
Running FCDex
This guide explains how to run FCDex in development mode or start a compiled version of the application.
Before continuing, complete the steps in Installation.
To start FCDex in development mode, run:
bun run devThe current development script uses tsx watch to execute src/index.ts and watch for file changes.
Development mode is intended for local development and debugging.
To compile the TypeScript project, run:
bun run buildThe build script invokes the TypeScript compiler using the project's tsconfig.json.
Resolve any compilation errors before attempting to start the compiled application.
After a successful build, start the compiled application:
bun run startThe current start script executes dist/index.js, which is generated by the build process.
| Command | Description |
|---|---|
bun install |
Install project dependencies |
bun run setup |
Generate the local configuration if missing |
bun run dev |
Start development mode |
bun run build |
Compile the project |
bun run start |
Start the compiled application |
bun run db:generate |
Generate the Prisma client |
bun run db:migrate |
Run Prisma's development migration workflow |
bun run db:studio |
Open Prisma Studio |
bun run lint |
Run ESLint |
bun run format |
Format project files |
Make sure that:
- Dependencies are installed.
- Your local
config.tsfile exists and contains the required settings. - Discord credentials are valid.
- The PostgreSQL database is reachable.
- Required database setup has been completed.
- The bot has the Discord permissions required by its enabled features.
Use your terminal's normal interrupt command to stop the running process.
Check the terminal output if the application reports errors during shutdown.
Production deployment guidance will be expanded as the project stabilizes.
Before running a production instance, consider:
- Secure credential management
- Database backups
- Error logging and monitoring
- Process restart behavior
- Database migration procedures
- Updating and maintaining the application
Do not run development database migrations against a production database without reviewing the migration plan.
If FCDex fails to start:
- Read the full terminal error.
- Verify your configuration.
- Check the database connection.
- Confirm that dependencies are installed.
- Run
bun run buildand resolve any compilation errors.
For more help, visit the Troubleshooting page or open a GitHub issue.
Collect the clubs. Build your legacy.
An open-source football club collecting bot for Discord.
GitHub Repository · Discord Community · Report a Bug
Explore the Wiki
Home · Installation · Configuration · Database Setup · Running FCDex · Package System · Troubleshooting · Contributing
Released under the MIT License · Built for football fans and Discord communities.
© FCDex contributors. All rights reserved where applicable under the MIT License.