Authentication backend for SchemaVaults applications. Deployed in production as auth.schemavaults.com.
See the @schemavaults/auth-client-sdk and @schemavaults/auth-react-provider packages for authenticating against this authentication server.
- Core authentication tools (e.g. hashing, JWT, etc.) from
@schemavaults/auth - React.js/Next.js Provider for making the auth server's frontend use the same auth client SDK that a 3rd party app would use: `@schemavaults/auth-react-provider
- Shared UI code from
@schemavaults/ui - kysely, kysely-neon, @neondatabase/serverless, to allow connecting to Postgres from the edge (or locally)
You will need some staples:
Install the necessary dependencies for all packages and the auth server by running:
bun installThere is a helper script init-dev-env.ts that will generate the .env.development file for you, prompting you for environment variables. Run it from the monorepo root:
bun run dev:init-envYou'll need to launch the database and run migrations in order for the server to properly read/write data:
# From the monorepo root:
# Launch the database
bun run dev:db
# In a separate terminal, run migrations while the database is running
bun run dev:migrate# From the monorepo root:
# Launch the database
bun run dev:db# From the monorepo root:
# Launch the auth server
bun run dev:serverBy default the development auth server will run at http://localhost:6767.
# From the monorepo root
docker build \
-t schemavaults/auth-server:latest \
-f ./auth-server/Dockerfile \
.