CursorLens icon indicating copy to clipboard operation
CursorLens copied to clipboard

feat: add docker compose for pg db, pgadmin and ngrok

Open gruckion opened this issue 1 year ago • 5 comments

… scripts

  • Introduces a docker compose to provision a local pg database and a make file. make up to spin up the pg database.
  • Also introduces prisma alias scripts in package.json. pnpm db:push for getting the local db ready.
  • Added ngrok to the docker-compose and update the readme.

CleanShot 2024-08-20 at 10 17 36@2x

Users now only need to run;

❯ make up
❯ make ngrok-url
Fetching ngrok URL...
https://00a0-000-000-0-000.ngrok-free.app

And it reads the API key from .env

NGROK_AUTHTOKEN=

gruckion avatar Aug 18 '24 17:08 gruckion

This is very nice! And thanks for the comment, I think it is nice to make it easier for people start using it with less effort.

Question: Can we setup the ngrok inside the container too?

HamedMP avatar Aug 18 '24 21:08 HamedMP

For #1

HamedMP avatar Aug 19 '24 13:08 HamedMP

This is very nice! And thanks for the comment, I think it is nice to make it easier for people start using it with less effort.

Question: Can we setup the ngrok inside the container too?

Yes we can,

https://ngrok.com/docs/using-ngrok-with/docker/

Done.

gruckion avatar Aug 20 '24 09:08 gruckion

Ready for review.

gruckion avatar Aug 20 '24 09:08 gruckion

Just added #11 in case we don't want too much to be bound to ngrok.

This might be a separate issue/PR to migrate from ngrok, but at least to mention it as related. Signing up in ngrok is a barrier.

If we can use a CursorLens app on CF to generate a URL for the user, that'd be 🔥

HamedMP avatar Aug 20 '24 09:08 HamedMP