Skip to content

dev: skip Slack verification in development mode - #107

Open
joan-code6 wants to merge 3 commits into
hackclub:mainfrom
joan-code6:login-bypass-while-in-dev
Open

dev: skip Slack verification in development mode#107
joan-code6 wants to merge 3 commits into
hackclub:mainfrom
joan-code6:login-bypass-while-in-dev

Conversation

@joan-code6

@joan-code6 joan-code6 commented May 9, 2026

Copy link
Copy Markdown

This pull request introduces a Docker Compose setup for local development and adds a development-only shortcut for authentication that creates a test user and session when running in a development environment. These changes streamline the development workflow by simplifying database setup and enabling quick login for developers.

Development environment improvements:

  • Added a docker-compose.yml file to set up a local PostgreSQL instance with persistent storage and health checks, making it easier to run the app locally without manual database setup.

Authentication enhancements for development:

  • Updated the /login route in src/routes/auth.ts to automatically create and log in a test user with a session when NODE_ENV is set to development, bypassing the normal authentication flow for faster local testing.

@joan-code6

joan-code6 commented May 9, 2026

Copy link
Copy Markdown
Author

Sry for AI slop I just don't know how to formulate it goodly...

It just bypasses the slack login when running through npm run dev and logs you instead in as a test user

I did this bc when testing my moderation system I would have had to configure slack and it's just annoying

@joan-code6

Copy link
Copy Markdown
Author

I'm sry 😔
I didn't even knew that I added the docker compose...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants