Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.23 KB

README.md

File metadata and controls

21 lines (13 loc) · 1.23 KB

Pocketbase as a framework template.

What is this?

This is a starter template that uses pocketbase as a framework using the extend with go functionality. Thanks Pocketbase! Using a setup like this gives you something very close to a rails or django experience with the nice minimal code that Go provides. I really am liking it.

This allows us to create a very minimal lightweight website that should be very performant. We use pico css for a little bit of styling and htmx with some vanilla js sprinkled in to give us a little interactivity and make it feel like an app. The demo comes with functionality to 'save a location' and 'delete a location'. It also has login, logout, register, and password reset(assuming you setup SMTP) capabilities.

Getting Started

Clone the repo and run

go run . serve

Then login to the admin panel and create a new collection called favorite_locations with location text field and 'user_id' relation field call. This is optional, you can also just try out the auth stuff if you don't want to do this.

Example favorite_locations collection:

image