Giter Club home page Giter Club logo

b2b-saaskit's People

Contributors

abs avatar jlarky avatar karannakra avatar opti21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

b2b-saaskit's Issues

Setup Review

I followed the setup process, skipping the OpenAI & Stripe setup. Love the process. I hit a couple of bumps, some of which were mine, and others were fixed already.

  • The git (ssh) clone failed, so I redid with https. SSH might requires auth even for public repos? I've never used it before, so I've not yet run into this.
  • Nit: The propelauth example project name is invalid (pwf-dev cannot contain -) (same in step 9) already fixed!
  • The setup page marks step 6 as complete before I even do anything (noticed past step 3)
  • Doesn't explain the flow of creating a posthog project. It could probably use a nod to follow the on-screen instructions, and which type of app to create (I assumed web)
  • For step 9, you need to do propelauth before the supabase migration also looks to be fixed!

Supabase connection broken - IPv4 Deprecation ?

Hello

Apparently the db connection string to Supabase is broken.
On promptswithfriends after trying to create a prompt the following error appears:
getaddrinfo ENOTFOUND db.aajtsheydwqllesdmzzg.supabase.co

On my local machine I tried to follow the update guide but no success.

They recommend for drizzle:
export const sql = postgres(serverEnv.DATABASE_URL , { prepare: false });
with the new connectionString from db settings but that doesn't seem to fix the issue.

Any ideas how to fix this ?

blog post ideas

how to setup something (or just use b2b saaskit)

  • how to configure TailwindCSS in Astro without astro integration
  • how to configure tRPC+React in Astro
  • how to setup og images (with preview based on t3)
  • ...

how to build simple apps using b2b saaskit:

  • Integrate OpenAI
  • add google analytics
  • ...

improve posthog session tracking

we need to create session id that will allow posthog correlate when the same session is continuing instead of creating new one every time

Import prompt from JSON

A developer is likely to have an existing prompt buried in code, in JSON format. It would be great to be able to import a prompt from a JSON string.

testing

We need to find a way to cover testing use case. Options:

  • vitest
  • playwright
  • checkly

"TRPCError: Could not validate access token." error on Node 19

TRPCError: Could not validate access token.
    at eval (/.../b2b-saaskit/src/lib/trpc/trpc.ts:91:11)
    at async callRecursive (file:///.../b2b-saaskit/node_modules/@trpc/server/dist/index.mjs:452:32)
    at async callRecursive (file:///.../b2b-saaskit/node_modules/@trpc/server/dist/index.mjs:452:32)
    at async resolve (file:///.../b2b-saaskit/node_modules/@trpc/server/dist/index.mjs:482:24) {
  code: 'UNAUTHORIZED',
  [cause]: UnauthorizedException [Error]: jwt malformed
      at verifyToken (/.../b2b-saaskit/node_modules/@propelauth/node/dist/index.js:23063:19)
      at /.../b2b-saaskit/node_modules/@propelauth/node/dist/index.js:23039:16
      at Generator.next (<anonymous>)
      at fulfilled (/.../b2b-saaskit/node_modules/@propelauth/node/dist/index.js:37:58) {
    status: 401
  }
}

it looks like set-cookie header doesn't work in Node 19, but it was working in 18 and was fixed in 20

nodejs/node#47755

We are calling ctx.resHeaders.append('set-cookie', ...) twice and only one of them would be applied in Node 19.

It looks like that in 19:

IMAGE 2023-06-26 17:26:37

And it looks like this in 18 or 20 (you see two cookies set):

IMAGE 2023-06-26 17:26:54

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.