Files
minabot/.env.example
syntaxbullet ecc2620a4c feat: add Home page with user dashboard and habit tracking features
- Implemented Home component with user authentication and loading states.
- Created Welcome component for unauthenticated users with a sign-in option.
- Developed Dashboard component to display user's habits and progress.
- Added functionality for habit management, including adding, updating, and deleting habits.
- Integrated HabitChart and HabitHistory components for visual representation of habits.
- Introduced sharing functionality for progress via Discord integration.

feat: establish Discord sharing configuration and routes

- Added DiscordSharingConfig type and readDiscordSharingConfig function for environment variable management.
- Created sharing contracts for input validation and data structure.
- Implemented sharing routes for previewing and sending progress images to Discord.
- Added tests for sharing routes to ensure authentication and proper error handling.
2026-09-04 17:48:54 +02:00

17 lines
701 B
Plaintext

# Optional shared defaults. Values in the selected environment file override these.
DATABASE_PATH=./data/minabot.sqlite
PORT=3000
# Discord Developer Portal > OAuth2. Register both redirect URIs:
# http://127.0.0.1:3000/api/auth/discord/callback
# https://YOUR_PRODUCTION_HOST/api/auth/discord/callback
# Credentials may be shared here or set separately in each environment file.
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
# Generate once: openssl rand -hex 32 (at least 32 characters required)
AUTH_COOKIE_SECRET=
# Bot-powered progress sharing. Invite the bot to the server and grant it
# View Channel, Send Messages, and Attach Files in this channel.
DISCORD_BOT_TOKEN=
DISCORD_SHARING_CHANNEL_ID=