{"id":24544150,"url":"https://github.com/jfraziz/react-pocketbase","last_synced_at":"2026-04-15T14:04:47.229Z","repository":{"id":244432396,"uuid":"815223415","full_name":"JfrAziz/react-pocketbase","owner":"JfrAziz","description":"starter project to develop pocketbase with react as frontend","archived":false,"fork":false,"pushed_at":"2024-06-16T18:49:29.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T20:16:19.552Z","etag":null,"topics":["docker","docker-compose","pocketbase","react","tailwindcss"],"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/JfrAziz.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}},"created_at":"2024-06-14T16:10:56.000Z","updated_at":"2024-06-16T18:49:33.000Z","dependencies_parsed_at":"2024-06-14T18:00:02.146Z","dependency_job_id":"a0de5081-b5ab-4a51-b729-4014d22b0450","html_url":"https://github.com/JfrAziz/react-pocketbase","commit_stats":null,"previous_names":["jfraziz/react-pocketbase"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JfrAziz%2Freact-pocketbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JfrAziz%2Freact-pocketbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JfrAziz%2Freact-pocketbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JfrAziz%2Freact-pocketbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JfrAziz","download_url":"https://codeload.github.com/JfrAziz/react-pocketbase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841223,"owners_count":20356446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","docker-compose","pocketbase","react","tailwindcss"],"created_at":"2025-01-22T20:16:21.890Z","updated_at":"2025-10-27T23:07:10.734Z","avatar_url":"https://github.com/JfrAziz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Pocketbase\n\nThis project just a starter to develop pocketbase with react frontend (SPA vite):\n\n- react (typescript)\n- tailwind\n- frontend routing [(tanstack router)](https://tanstack.com/router)\n- [shadcn UI components](https://ui.shadcn.com/)\n- [pocketbase typegen](https://github.com/david-plugge/typed-pocketbase)\n- [docker support](#production)\n- [docker development](#development-with-docker) (with local SMTP and S3 support)\n\nThis project already setup with custom authentication page rather than using default pocketbase, such as\n\n- `/auth/login` -\u003e login page\n- `/auth/register` -\u003e register page\n- `/auth/password-reset` -\u003e password reset request page\n- `/auth/password-reset-conform?token=\u003ctoken\u003e` -\u003e password reset page\n- `/auth/email-verification` -\u003e request email verification page\n- `/auth/email-verification-confirm?token=\u003ctoken\u003e` -\u003e verify email\n\nto use custom routes, we need to update pocketbase default email url. \n\n# Development\n\nto run this project in development, you need to run \n- frontend (react): `pnpm run dev`\n- pocketbase: binary / docker\n\nalso check for some [env variablestext](./.env.example) first\n\nif you use docker for pocketbase, ensure you have the following installed on your machine:\n\n- Docker: [Install Docker](https://docs.docker.com/get-docker/)\n- Docker Compose: [Install Docker Compose](https://docs.docker.com/compose/install/)\n\nI have 2 docker-compose file for you to use based on what you need, default and full local. use the default [`docker-compose.yml`](./docker-compose.yml), if you only need to run pocketbase. use full local [`docker-compose-full.yml`](./docker-compose-full.yml), if you need to setup additional services such as **mailpit** (SMTP) and **MinIO** (S3 compatible). as you know, pocketbase support that. if you use this config, make sure you follow this step before running it.\n\n## Step 1: Generate a Self-Signed Certificate\n\nto secure the Mailpit SMTP server, generate a self-signed SSL certificate. this because pocketbase need smtp server to be secured (Always or StartTLS), so we need to create self-signed certificate for mailpit, also we need to update pocketbase container to add this certificate, check [start.sh](./dev/start.sh). run the following command in your terminal to generate certificate:\n\n```sh\nopenssl req -x509 -newkey rsa:4096 -nodes -keyout ./dev/key.pem -out ./dev/cert.pem -sha256 -days 3650 -subj \"/CN=.\" -addext \"subjectAltName = DNS:mailpit\"\n```\n\n## Step 2: SMTP and MinIO Config\n\nafter you run all the services defined in the [`docker-compose-full.yml`](./docker-compose-full.yml) file, `docker compose -f docker-compose-full.yml up -d`. check all services already running:\n\n- pocketbase: [localhost:8080/_/](http://localhost:8080/_/)\n- MinIO Console: [localhost:9001](http://localhost:9001) *you need to setup new bucket and access key*\n- Mailpit: [localhost:8025](http://localhost:8025)\n\nadd this config for SMTP and Minio in pocketbase settings.\n\n```\nSMTP server host: mailpit\nPort: 1025\nUsername: mailpit\nPassword: mailpit\n\nS3 Endpoint: http://minio:9000\nBucket: \u003cbucket name\u003e\nAccess Key: \u003caccess key\u003e\nSecret: \u003csecret\u003e\nForce path style addressing: True\n```\n\nthen you can test if smtp and S3 connection works properly or not\n\n# Production\n\nuse [Dockerfile](./Dockerfile) to build this project into single image, the frontend and pocketbase.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfraziz%2Freact-pocketbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfraziz%2Freact-pocketbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfraziz%2Freact-pocketbase/lists"}