Skip to content

dmikalova/login

Repository files navigation

Login

Centralized authentication service for mklv.tech apps using Supabase Auth.

Development

Prerequisites

  • Deno (version in .deno-version)
  • Atlas CLI for database schema management
  • Docker (for Atlas dev container)

Atlas Installation

# macOS
brew install ariga/tap/atlas

# Or via curl
curl -sSf https://atlasgo.sh | sh

Database Schema

The database schema is defined in db/schema.hcl. To view or apply changes:

# View what would change (fetches DATABASE_URL from Secret Manager)
deno task db:diff

# Apply schema changes
deno task db:apply

# Or provide DATABASE_URL explicitly
DATABASE_URL="postgres://..." deno task db:diff

The wrapper script uses --schema login to limit Atlas to the app's schema, avoiding conflicts with Supabase system tables.

Running Locally

# Fetch secrets (requires gcloud auth)
eval $(deno task secrets)

# Run with hot reload
deno task dev

Testing

deno task test       # Unit tests
deno task test:all   # All tests

About

centralized login portal for multi-domain authentication

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors