Skip to content

Conversation

@gruckion
Copy link
Contributor

@gruckion gruckion commented Aug 18, 2024

… 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=

@HamedMP
Copy link
Owner

HamedMP commented Aug 18, 2024

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 HamedMP added this to the Run with Docker milestone Aug 19, 2024
@HamedMP
Copy link
Owner

HamedMP commented Aug 19, 2024

For #1

@gruckion
Copy link
Contributor Author

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
Copy link
Contributor Author

Ready for review.

@gruckion gruckion changed the title feat: add docker compose for pg db and pgadmin setup and prisma alias… feat: add docker compose for pg db, pgadmin and ngrok Aug 20, 2024
@HamedMP
Copy link
Owner

HamedMP commented Aug 20, 2024

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 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants