{"id":50352760,"url":"https://github.com/marcjulian/aba","last_synced_at":"2026-05-29T21:30:51.571Z","repository":{"id":357115431,"uuid":"1228986833","full_name":"marcjulian/aba","owner":"marcjulian","description":"angular better-auth","archived":false,"fork":false,"pushed_at":"2026-05-11T10:49:24.000Z","size":592,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T12:42:35.057Z","etag":null,"topics":["angular","angular-ssr","better-auth","nitrojs","nx","spartan-ui","trpc"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcjulian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-04T15:26:35.000Z","updated_at":"2026-05-11T10:49:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/marcjulian/aba","commit_stats":null,"previous_names":["marcjulian/aba"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/marcjulian/aba","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcjulian%2Faba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcjulian%2Faba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcjulian%2Faba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcjulian%2Faba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcjulian","download_url":"https://codeload.github.com/marcjulian/aba/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcjulian%2Faba/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33672124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-ssr","better-auth","nitrojs","nx","spartan-ui","trpc"],"created_at":"2026-05-29T21:30:50.749Z","updated_at":"2026-05-29T21:30:51.565Z","avatar_url":"https://github.com/marcjulian.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aba - Angular + Better Auth\n\n1. [Angular](https://angular.io/) the frontend framework for building web applications\n2. [Better Auth](https://www.better-auth.com/) the authentication framework\n3. [spartan/ui](https://spartan.ng/) accessible, customizable components for Angular applications\n4. [tRPC](https://trpc.io/) end-to-end typesafe APIs\n5. [Prisma](https://www.prisma.io/) database migration and ORM\n6. [NX](https://nx.dev/) monorepo tool for managing multiple applications and libraries in a single repository\n\n## Quick Start\n\nInstall dependencies\n\n```bash\npnpm install\n```\n\nCopy the `.env.dev` file and fill in the `BETTER_AUTH_SECRET` and `BETTER_AUTH_URL` values.\n\n```bash\ncp .env.dev .env\n```\n\nStart postgres database with docker compose\n\n```bash\ndocker compose up -d\n```\n\nRun the prisma migration to create the database and tables:\n\n```bash\npnpm prisma migrate dev\n```\n\nServe the analog app\n\n```bash\npnpm start\n```\n\nVisit [localhost:5173](http://localhost:5173) to see the app running.\n\nSign up a new user and than you can seed the database with dummy data\n\n```bash\npnpm prisma db seed\n```\n\n### Better Auth\n\nRun the following command to update prisma schema base on the Better Auth configuration:\n\n```bash\n# generate schema\npnpm dlx auth@latest generate --config apps/api/server/utils/auth.ts\n```\n\n### Prisma\n\nRun the following command to create the database and run the migrations:\n\n```bash\npnpm prisma migrate dev\n```\n\nGenerate the Prisma client:\n\n```bash\npnpm prisma generate\n```\n\n## App SSR\n\nBuild app and run app locally allowing access from localhost\n\n```bash\npnpm build\n\nNG_ALLOWED_HOSTS=localhost,127.0.0.1 node dist/apps/app/server/server.mjs\n```\n\n## Apps in Docker\n\nTo run the application in Docker, update the `.env` file to point to the docker container names instead of `localhost` (database, redis, rustfs, better-auth).\n\nThe dockerfiles for the apps require the apps to be built first before starting the container.\n\n```bash\npnpm build\n```\n\nStart the containers in detached mode:\n\n```bash\ndocker compose -f compose.prod.yml up -d\n```\n\nWhen you rebuild the app use this command to rebuild the docker images:\n\n```bash\ndocker compose -f compose.prod.yml up -d --build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcjulian%2Faba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcjulian%2Faba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcjulian%2Faba/lists"}