mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-06-04 04:22:59 +00:00
feat(core): consolidate auth service into backend and implement stripe billing
This commit performs a major architectural refactor by migrating the standalone `auth-service` into the main `backend` application, enabling a unified codebase and simplified deployment. It also introduces comprehensive Stripe billing support and a new administrative dashboard.
Key changes:
- **Architecture**: Deleted `apps/auth-service` and integrated its functionality (JWT, magic links, OAuth, user management) into `apps/backend`.
- **Billing**: Added Stripe integration to `backend`, supporting both monthly and yearly subscription cycles with automatic plan entitlement enforcement (e.g., location limits).
- **Admin Dashboard**: Implemented a new administrative service and API endpoints to manage tenants, users, and view platform-wide statistics.
- **Frontend**:
- Added a new pricing page with monthly/yearly toggle and comparison table.
- Integrated Stripe and Sentry for payments and error tracking.
- Improved dashboard UX/UI and added i18n support for new features.
- Enhanced the public booking flow with better validation and contact form integration.
- **Database**: Added migrations for users, magic links, password resets, OAuth states, admin audit logs, and refresh tokens.
- **DevOps**: Updated environment configurations for Railway and Vercel, and streamlined the project's `package.json` scripts.
This commit is contained in:
+2
-5
@@ -11,19 +11,16 @@
|
||||
"scripts": {
|
||||
"dev:frontend": "npm run dev --workspace @bookra/frontend",
|
||||
"dev:backend": "cd apps/backend && go run ./cmd/api",
|
||||
"dev:auth": "cd apps/auth-service && go run ./cmd/api",
|
||||
"build:frontend": "npm run build --workspace @bookra/frontend",
|
||||
"build:backend": "cd apps/backend && go build ./...",
|
||||
"build:auth": "cd apps/auth-service && go build ./...",
|
||||
"test:backend": "cd apps/backend && go test ./...",
|
||||
"test:auth": "cd apps/auth-service && go test ./...",
|
||||
"test": "npm run test:backend && npm run test:auth",
|
||||
"test": "npm run test:backend",
|
||||
"db:generate": "cd apps/backend && go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.30.0 generate -f sqlc.yaml",
|
||||
"db:migrate:up": "cd apps/backend && go run github.com/pressly/goose/v3/cmd/goose@v3.24.1 -dir migrations postgres \"$BOOKRA_DATABASE_DIRECT_URL\" up",
|
||||
"db:migrate:status": "cd apps/backend && go run github.com/pressly/goose/v3/cmd/goose@v3.24.1 -dir migrations postgres \"$BOOKRA_DATABASE_DIRECT_URL\" status",
|
||||
"lint:frontend": "npm run lint --workspace @bookra/frontend",
|
||||
"generate:api-client": "npm run generate --workspace @bookra/api-client",
|
||||
"verify": "npm run generate:api-client && npm run lint:frontend && npm run test && npm run build:frontend && npm run build:backend && npm run build:auth"
|
||||
"verify": "npm run generate:api-client && npm run lint:frontend && npm run test && npm run build:frontend && npm run build:backend"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0"
|
||||
|
||||
Reference in New Issue
Block a user