feat: add docker compose for pg db, pgadmin and ngrok
… scripts
- Introduces a docker compose to provision a local pg database and a make file.
make upto spin up the pg database. - Also introduces prisma alias scripts in
package.json.pnpm db:pushfor getting the local db ready. - Added ngrok to the docker-compose and update the readme.
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=
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?
For #1
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
ngrokinside the container too?
Yes we can,
https://ngrok.com/docs/using-ngrok-with/docker/
Done.
Ready for review.
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 🔥