Skip to content

VictorioBerra/pocketpages-templates

Repository files navigation

Logo

Pocketpages Template

This template creates a UI around all of Pocketbases password auth capabilities using Pocketpages.

  • ✅ Register
  • ✅ Verify Email
  • ✅ Login
  • ✅ Change PW
  • ✅ Change Email
  • ✅ Logout
  • ✅ Forgot PW

Additionally, this template comes with the following:

Tests

This template comes with Playwright tests which show you how to integration test your pocketbase app E2E. Including actual email sending and retreval from MailHog.

Validation

This template performs 3-levels of validation, and displays the validation to the user as both a summary and field-level errors under your form inputs.

  • Client-side validation support via DaisyUI error display.
  • Pocketpages errors. Using Ajv, you can validate your forms and display a summary and errors under your inputs.
  • Pocketbase validation support. Validation errors from Pocketbase SDK calls are smartly shown to the user, and on the offending field.

Getting Started

Clone this repo, or open in a Codepsace.

Docker

  • docker compose up --build

Configuration

The following environment variables are supported:

  • POCKETPAGESJSSDK_DEBUG
  • POCKETPAGESJS_DEBUG

TODO

  • Deployment Doc
  • CORS?
  • CSRF Headers?
  • Antiforgery Token?

About

Templates for Pocketpages, authentication-ready.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •