Skip to content

collinstommy/go-starter-pocketbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Starter Template

This is a starter template for building web applications using Go, Pocketbase, and HTMX. It provides a simple and efficient setup to get you started quickly.

Features

  • Pocketbase: A powerful backend service for your application.
  • HTMX: A modern library for building dynamic web applications with minimal JavaScript.
  • Tailwind CSS: A utility-first CSS framework for rapid UI development.

Prerequisites

Before you begin, ensure you have the following installed on your system:

  1. Air: A live reload tool for Go applications.
  2. Go: The Go programming language.
  3. Node.js: JavaScript runtime for building and running frontend tools.

Installation

Follow these steps to set up the project:

  1. Install the Tailwind CSS CLI globally:

    npm install -g @tailwindcss/cli
  2. Download Go dependencies:

    go mod tidy

Running the Project

To start the development server, run the following command:

air

Once the server is running, open your browser and navigate to:

http://127.0.0.1:8090/hello/yourname

TODO

Authentication

  1. HTMX Configuration: Use htmx:config to set the authentication header on the client side. For more details, check out this Reddit discussion.

  2. Echo Middleware: Use Echo middleware to handle claims and set cookies. Learn more in this example project.

About

Starter template for pocketbase with HTMX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •