{"id":22369206,"url":"https://github.com/aaronksaunders/react-router-node-postgres-auth-template","last_synced_at":"2026-02-08T02:05:10.160Z","repository":{"id":264587974,"uuid":"893765812","full_name":"aaronksaunders/react-router-node-postgres-auth-template","owner":"aaronksaunders","description":"added authentication to the official react router / remix node postgres template","archived":false,"fork":false,"pushed_at":"2024-11-25T07:09:52.000Z","size":81,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-28T07:40:15.808Z","etag":null,"topics":["authentication","drizzle","node","postgres","postgresql","react-router","remix"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaronksaunders.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-11-25T07:07:34.000Z","updated_at":"2025-03-14T14:41:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7bfe9056-30aa-4313-96f8-2e934402e498","html_url":"https://github.com/aaronksaunders/react-router-node-postgres-auth-template","commit_stats":null,"previous_names":["aaronksaunders/react-router-node-postgres-auth-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aaronksaunders/react-router-node-postgres-auth-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Freact-router-node-postgres-auth-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Freact-router-node-postgres-auth-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Freact-router-node-postgres-auth-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Freact-router-node-postgres-auth-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronksaunders","download_url":"https://codeload.github.com/aaronksaunders/react-router-node-postgres-auth-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronksaunders%2Freact-router-node-postgres-auth-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29217763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T00:10:47.190Z","status":"online","status_checked_at":"2026-02-08T02:00:07.642Z","response_time":57,"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":["authentication","drizzle","node","postgres","postgresql","react-router","remix"],"created_at":"2024-12-04T19:18:21.090Z","updated_at":"2026-02-08T02:05:10.140Z","avatar_url":"https://github.com/aaronksaunders.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Router Node Postgres Template w/ Authentication\n\nA modern, production-ready template for building full-stack React applications using React Router, based on the official [node-postgres template](https://github.com/remix-run/react-router-templates/tree/main/node-postgres)\n\n## Features\n\n- 🚀 Server-side rendering\n- ⚡️ Hot Module Replacement (HMR)\n- 📦 Asset bundling and optimization\n- 🔄 Data loading and mutations\n- 🔒 TypeScript by default\n- 🎉 TailwindCSS for styling\n- 💾 PostgreSQL + DrizzleORM\n- 🔑 User authentication with login and registration\n- 📖 [React Router docs](https://reactrouter.com/)\n\n## Authentication\n\n### Registration\n\nUsers can register for an account by navigating to the registration page. The registration form requires the following information:\n\n- **Username**: A unique username for the user.\n- **Email**: A valid email address (must be unique).\n- **Password**: A secure password (minimum length of 6 characters).\n\nUpon successful registration, users will be redirected to the login page.\n\n### Login\n\nAfter registration, users can log in using their credentials. The login form requires:\n\n- **Email**: The email address used during registration.\n- **Password**: The password associated with the account.\n\nUpon successful login, users will be redirected to the home page.\n\n## Getting Started\n\n### Installation\n\nInstall the dependencies:\n\n```bash\nnpm install\n```\n\n### Development\n\nCopy `.env.example` to `.env` and provide a `DATABASE_URL` with your connection string.\n\nRun an initial database migration:\n\n```bash\nnpm run db:migrate\n```\n\nStart the development server with HMR:\n\n```bash\nnpm run dev\n```\n\nYour application will be available at `http://localhost:5173`.\n\n## Building for Production\n\nCreate a production build:\n\n```bash\nnpm run build\n```\n\n## Deployment\n\n### Docker Deployment\n\nThis template includes three Dockerfiles optimized for different package managers:\n\n- `Dockerfile` - for npm\n- `Dockerfile.pnpm` - for pnpm\n- `Dockerfile.bun` - for bun\n\nTo build and run using Docker:\n\n```bash\n# For npm\ndocker build -t my-app .\n\n# For pnpm\ndocker build -f Dockerfile.pnpm -t my-app .\n\n# For bun\ndocker build -f Dockerfile.bun -t my-app .\n\n# Run the container\ndocker run -p 3000:3000 my-app\n```\n\nThe containerized application can be deployed to any platform that supports Docker, including:\n\n- AWS ECS\n- Google Cloud Run\n- Azure Container Apps\n- Digital Ocean App Platform\n- Fly.io\n- Railway\n\n### DIY Deployment\n\nIf you're familiar with deploying Node applications, the built-in app server is production-ready.\n\nMake sure to deploy the output of `npm run build`\n\n```\n├── package.json\n├── package-lock.json (or pnpm-lock.yaml, or bun.lockb)\n├── server.js\n├── build/\n│   ├── client/    # Static assets\n│   └── server/    # Server-side code\n```\n\n## Styling\n\nThis template comes with [Tailwind CSS](https://tailwindcss.com/) already configured for a simple default starting experience. You can use whatever CSS framework you prefer.\n\n---\n\nBuilt with ❤️ using React Router.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronksaunders%2Freact-router-node-postgres-auth-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronksaunders%2Freact-router-node-postgres-auth-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronksaunders%2Freact-router-node-postgres-auth-template/lists"}