Here's the complete formatted README.md content that you can directly copy:
A monorepo containing a Discord bot and REST API for task management.
apps/
├── api/ # REST API built with Fastify
└── discord-bot/ # Discord bot using discord.js- RESTful endpoints for task management
- OpenAPI/Swagger documentation at
/api/docs - Health check and server monitoring endpoints
- Built with Fastify for high performance
- Slash command support
- Server information commands
- Administrative commands
- Built with discord.js
- Language: TypeScript
- API Framework: Fastify
- Discord Framework: discord.js
- Package Manager: pnpm (workspace)
- Documentation: OpenAPI/Swagger
- Linting: ESLint
- Building: tsup
- Node.js 18+
- pnpm
- Clone the repository
git clone <repository-url>
cd taskcord- Install dependencies
pnpm install- Set up environment variables
# For API
cp apps/api/.env.example apps/api/.env
# For Discord Bot
cp apps/discord-bot/.env.example apps/discord-bot/.env- Start development servers
# API
pnpm --filter api dev
# Discord Bot
pnpm --filter bot dev# Build all apps
pnpm build
# Build specific app
pnpm --filter api build
pnpm --filter bot buildPORT- Server port (default: 5001)NODE_ENV- Environment (prod/staging/local)DATABASE_URL- Database connection stringREDIS_URL- Redis connection string
DISCORD_BOT_TOKEN- Discord bot tokenDISCORD_CLIENT_ID- Discord application client IDDISCORD_SHOULD_REGISTER_COMMANDS- Whether to register slash commands
API documentation is available at /api/docs when running in local environment.
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.