Skip to content

Simple Todo app to learn Pocketbase (with Vue)

Notifications You must be signed in to change notification settings

kendallroth/todo-pocketbase

Repository files navigation

todo-pocketbase

Simple Todo app to learn Pocketbase (with Vue).

Features

  • Pocketbase authentication (login, logout)
  • Manage todo items
  • Secure access to todo items

Ideas

  • Support user registration
  • Support real-time updates

Pocketbase

Development

Run make api-serve to start Pocketbase

Auth

Add the following rule to Pocketbase to limit resources to the current user.

@request.auth.id = user.id

Tokens are valid for 14 days (by default) but can be refreshed if a valid token is provided (there is no refresh workflow). If the token is invalid (ie expired), the auth state can be cleared and a login workflow initiated.

Admin UI

Username: kendall@kendallroth.ca Password: Passw0rd!@#