{"id":20841141,"url":"https://github.com/james-langridge/personal-trainer-planner","last_synced_at":"2025-08-30T09:15:35.464Z","repository":{"id":158325274,"uuid":"633885187","full_name":"james-langridge/personal-trainer-planner","owner":"james-langridge","description":"Full stack scheduling and management app for personal trainers made with Next.js 15, React 19, React Query, Prisma, PostgreSQL, Auth.js, Tailwind CSS, and shadcn/ui.","archived":false,"fork":false,"pushed_at":"2025-03-16T07:56:27.000Z","size":3409,"stargazers_count":18,"open_issues_count":5,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T15:44:40.191Z","etag":null,"topics":["fitness","health","nextauth","nextjs","personal-trainers","playwright","postgresql","prisma","react","react-query","rsc","shadcn-ui","sport","tailwindcss","typescript","vercel","vitest"],"latest_commit_sha":null,"homepage":"https://personal-trainer-planner.vercel.app","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/james-langridge.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}},"created_at":"2023-04-28T14:02:04.000Z","updated_at":"2025-06-24T16:58:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba391001-d446-429b-acf1-5bad2089cfab","html_url":"https://github.com/james-langridge/personal-trainer-planner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/james-langridge/personal-trainer-planner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james-langridge%2Fpersonal-trainer-planner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james-langridge%2Fpersonal-trainer-planner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james-langridge%2Fpersonal-trainer-planner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james-langridge%2Fpersonal-trainer-planner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james-langridge","download_url":"https://codeload.github.com/james-langridge/personal-trainer-planner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james-langridge%2Fpersonal-trainer-planner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272828810,"owners_count":25000091,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"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":["fitness","health","nextauth","nextjs","personal-trainers","playwright","postgresql","prisma","react","react-query","rsc","shadcn-ui","sport","tailwindcss","typescript","vercel","vitest"],"created_at":"2024-11-18T01:18:58.333Z","updated_at":"2025-08-30T09:15:35.436Z","avatar_url":"https://github.com/james-langridge.png","language":"TypeScript","funding_links":[],"categories":["Platforms \u0026 Applications"],"sub_categories":[],"readme":"[![Tests](https://github.com/james-langridge/personal-trainer-planner/actions/workflows/ci.yml/badge.svg)](https://github.com/james-langridge/personal-trainer-planner/actions/workflows/ci.yml)\n\n## Personal Trainer Planner\n\nA single-tenant Next.js app for personal trainers to schedule and track events,\nand manage and invoice trainees. Made in collaboration with and used in\nproduction by a real [personal trainer](https://www.fitforlifetrainer.co.uk/)\n(**PT**).\n\n### Features\n\n- Shared calendar between PT and each trainee, editable by PT only.\n- Three calendar event types:\n  - `Workouts`, created by PT, which trainees can check off as completed.\n  - `Appointments`, with fees for billing.\n  - `Bootcamps`, which trainees can check to confirm attendance, if they have\n    enough credits.\n- Appointment attendance and fee data is viewable in a monthly table.\n- Invoices can be generated and emailed to trainees with a button click.\n- Mobile-friendly calendar list-view for trainees.\n- Custom forms via Contentful CMS, emailed to the PT when the trainee completes\n  them.\n\n### Technology\n\n- Built with **[Next.js 15](https://nextjs.org/)** and\n  **[React 19](https://react.dev/)**.\n- Written in **[TypeScript](https://www.typescriptlang.org/)**.\n- Data persistence with **[PostgreSQL](https://www.postgresql.org/)**.\n- ORM using **[Prisma](https://www.prisma.io/)**.\n- Authentication using **[Auth.js](https://authjs.dev/)**.\n- Unit tests using **[Vitest](https://vitest.dev/)**, end-to-end tests using\n  **[Playwright](https://playwright.dev/)**\n- Styled using **[Tailwind CSS](https://tailwindcss.com/)**,\n  **[Meraki UI](https://merakiui.com/)**, and\n  **[shadcn/ui](https://ui.shadcn.com/)**.\n\n### DevOps\n\n- Deployed on **[Vercel](https://vercel.com/home)**.\n- Production and staging databases on **[Railway](https://railway.app/)**.\n- Automated database backups, testing and code quality with\n  **[GitHub Actions](https://github.com/features/actions)**.\n\n### Roadmap\n\n- Migrate to multi-tenancy.\n\n### Screenshots\n\n|                                         |                                         |                                         |\n| :-------------------------------------: | :-------------------------------------: | :-------------------------------------: |\n| \u003cimg src=\"public/calendarTrainer1.png\"\u003e | \u003cimg src=\"public/calendarTrainer2.png\"\u003e | \u003cimg src=\"public/calendarTrainer3.png\"\u003e |\n|   \u003cimg src=\"public/clientsTable.png\"\u003e   |   \u003cimg src=\"public/clientTable.png\"\u003e    |  \u003cimg src=\"public/mobileCalendar.png\"\u003e  |\n\n## Run it locally\n\n### Prerequisites\n\n- For the forgot-password api, and emailing invoices and forms, you will need to\n  set up an email account for use with nodemailer. See the\n  [Auth.js](https://next-auth.js.org/providers/email) docs and the\n  [nodemailer docs](https://nodemailer.com/usage/using-gmail/).\n- The app uses Contentful as a CMS for the trainer to create forms for their\n  clients, which are emailed to the trainer on completion. To use this feature\n  you will need a [Contentful](https://www.contentful.com/sign-up/) account.\n\n### Steps\n\n1. Clone the repo\n   ```sh\n   git clone https://github.com/james-langridge/personal-trainer-planner.git\n   ```\n2. Install NPM packages\n   ```sh\n   npm install\n   ```\n3. Copy the environment variable files and update the variables.\n   ```sh\n   cp .env.example .env\n   ```\n4. Create a postgres db in a Docker container:\n   ```sh\n   docker run --name ptp-db -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=ptp -p 5432:5432 -d postgres\n   ```\n5. Set the `DATABASE_URL` in your `.env` file:\n   ```\n   DATABASE_URL=postgresql://postgres:postgres@localhost:5432/ptp\n   ```\n6. Apply the migrations:\n   ```sh\n   npx prisma migrate deploy\n   ```\n7. Seed the database:\n   ```sh\n   npx prisma db seed\n   ```\n8. Start the development server:\n   ```sh\n   npm run dev\n   ```\n9. Open up http://localhost:3000 in a browser and log in with the email and\n   password from the seed script.\n\n## Deploy your own\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fjames-langridge%2Fpersonal-trainer-planner\u0026env=DATABASE_URL,NEXTAUTH_SECRET,SMTP_PASSWORD,SMTP_USER,SMTP_HOST,SMTP_PORT,EMAIL_FROM,EMAIL_TO,CONTENTFUL_SPACE_ID,CONTENTFUL_ACCESS_TOKEN)\n\nSee the [Next.js deployment documentation](https://nextjs.org/docs/deployment)\nfor more details.\n\n## License\n\nDistributed under the\n[MIT License](https://github.com/james-langridge/personal-trainer-planner/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames-langridge%2Fpersonal-trainer-planner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames-langridge%2Fpersonal-trainer-planner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames-langridge%2Fpersonal-trainer-planner/lists"}