Coder Social home page Coder Social logo

pbj's Introduction

Pb&J Stack

The PB Stacks for PocketBase, and the J stands for just HTMX.

pbj-time

Simplicity > Dependencies

I wanted to make the simplest stack I could using the least number of dependencies, and writing the simplest code. This is a very hard balance to find as simplicity hides complexity.

Independently, I found both PocketBase and HTMX. Both solutions focus on what can be done simply and effectively. Once I looked at the documentation for PocketBase and saw that with Go I can render templates the path forward was clear.

Get Started

You should fork this repository for your next new project. Then run:

go mod tidy
go run main.go serve

And you're ready to go...

screen-capture.-.2023-10-19T012556.063.webm

pbj's People

Contributors

ccutch avatar

Stargazers

Praney Behl avatar GregFo avatar Luke Hooper avatar kazuki nitta avatar Christian Rotzoll avatar  avatar Ben Bytheway avatar Mark Chenoweth avatar Thinh Nguyen avatar Edward Chan  avatar Genesis Guerrero Martinez avatar Eileen Noonan avatar K avatar Morteza Rahmani avatar Charles Gude avatar  avatar dillon avatar  avatar Joost avatar Brad Pillow avatar Kostas avatar Rohan Zaman avatar Sean O'Rourke avatar Alex Cory avatar Dave McCarter avatar Michael Mei avatar Alex Parella avatar

Watchers

 avatar  avatar

Forkers

xorgonix gedw99

pbj's Issues

user login

Is there something wrong with user login ? when I click login its hits the server but does nothing.

  1. Change hardcoded path on Login page to correct local server: https://github.com/ccutch/pb-j-stack/blob/main/templates/pages/login.html#L3C31-L3C31
//const pb = new PocketBase('https://8090-ccutch-pbjstack-tcrrn613x9y.ws-us105.gitpod.io');
  const pb = new PocketBase('http://127.0.0.1:8090');
  1. go run . and Create the admin, and then create a user via the PB GUI.

  2. Open http://127.0.0.1:8090, and login with user details.

  3. Check error at http://127.0.0.1:8090/_/#/logs

Status | 404
Method | POST
Auth | guest
URL | /api/api/admins/auth-with-password
Referer | http://127.0.0.1:8090/
Remote IP | 127.0.0.1
User IP | 127.0.0.1
UserAgent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15
Meta | {   "errorDetails": "<nil>",   "errorMessage": "Not Found" }
Created | 2023-11-1608:48:00 UTC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.