scale-jobs / abfy.io

World's simplest A/B testing Library
3 stars 1 forks source link

Admin Panel #5

Open eyeamkd opened 2 months ago

eyeamkd commented 2 months ago

Create an Admin Panel

eyeamkd commented 2 weeks ago
  1. Login and see your Experiment Results
  2. Get your API Key
  3. Render Stats
  4. KeyAction based Results Display
  5. Combination of variants per experiment
balajikummari commented 5 days ago

image

Let's try to stick to a very simple setup for now

image

image

eyeamkd commented 4 days ago

Expecting the users to save a private key for logging in, doesn't sink in with me. Instead, let's just have a hassle free OAuth experience for signing in, let the users create mulitple apps. For each app we can give them a dedicated API Key.

Why this approach:

  1. Would make things simpler
  2. No pressure on the user to save a key or any info to login
  3. Follows the standard of creating apps ( Gtag manager ) etc. So users would be pre-trained to use something like this
eyeamkd commented 4 days ago

We can go with Mongo for storing experiment results. I'm skeptical about using postgres for auth info or API key info, as it would create a mix of SQL/ NoSQL, but lowkey want to try this setup, best of both worlds. Your take @balajikummari?

balajikummari commented 4 days ago

https://www.prisma.io/docs/orm/overview/databases/mongodb

With prisma you can have both, let the user decide what he wants

On Wed, 10 Jul, 2024, 10:53 am Kunal Dubey, @.***> wrote:

We can go with Mongo for storing experiment results. I'm skeptical about using postgres for auth info or API key info, as it would create a mix of SQL/ NoSQL, but lowkey want to try this setup, best of both worlds. Your take @balajikummari https://github.com/balajikummari?

— Reply to this email directly, view it on GitHub https://github.com/scale-jobs/abfy.io/issues/5#issuecomment-2219587276, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK2Y26FZIXLNRHTVGXOQU6LZLTAOVAVCNFSM6AAAAABHPECBASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJZGU4DOMRXGY . You are receiving this because you were mentioned.Message ID: @.***>

balajikummari commented 4 days ago

https://www.prisma.io/docs/orm/overview/databases

All supported DBs

On Wed, 10 Jul, 2024, 10:56 am Balaji Kummari, @.***> wrote:

https://www.prisma.io/docs/orm/overview/databases/mongodb

With prisma you can have both, let the user decide what he wants

On Wed, 10 Jul, 2024, 10:53 am Kunal Dubey, @.***> wrote:

We can go with Mongo for storing experiment results. I'm skeptical about using postgres for auth info or API key info, as it would create a mix of SQL/ NoSQL, but lowkey want to try this setup, best of both worlds. Your take @balajikummari https://github.com/balajikummari?

— Reply to this email directly, view it on GitHub https://github.com/scale-jobs/abfy.io/issues/5#issuecomment-2219587276, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK2Y26FZIXLNRHTVGXOQU6LZLTAOVAVCNFSM6AAAAABHPECBASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJZGU4DOMRXGY . You are receiving this because you were mentioned.Message ID: @.***>

eyeamkd commented 4 days ago

Yeah ORM was never an issue.

balajikummari commented 4 days ago

I mean as long as you are using prisma, we are good with any Db you use

eyeamkd commented 4 days ago

Coool. Let's use Prisma only then. What about OAuth and a single API Key approach?

balajikummari commented 4 days ago

Lets use simple API key or jwt auth, oAuth and all overkill for now ?

Simply sign a jwt/generate keys and send to FE and verify JWT/keys on backend?

On Wed, 10 Jul, 2024, 11:10 am Kunal Dubey, @.***> wrote:

Coool. Let's use Prisma only then. What about OAuth and a single API Key approach?

— Reply to this email directly, view it on GitHub https://github.com/scale-jobs/abfy.io/issues/5#issuecomment-2219605876, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK2Y26FUFH5CSGMCTDB6WPLZLTCLZAVCNFSM6AAAAABHPECBASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJZGYYDKOBXGY . You are receiving this because you were mentioned.Message ID: @.***>

eyeamkd commented 4 days ago

I agree with your point of overkill, but I don't like the idea of user having to store/save something on his end. On the other hand, OAuth would only go about for being a fundamental base in our architecture that we don't need to change

eyeamkd commented 2 days ago

Yo @balajikummari given that the weekend is near, imma start with this then. Just wanted to give you an FYI