OmegaHawkeye / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
7 stars 1 forks source link

[Feature Request] Add quick postgre startup script with docker #29

Open OmegaHawkeye opened 5 months ago

OmegaHawkeye commented 5 months ago

From kirimase created by corentin-bot: nicoalbanese/kirimase#139

Hey,

Just playing with kirimase 👍

Add I thought it could be great to have a script to start un postgre database directly in docker. I used to dev with T3 stack and they have this feature. It's not a big deal to setup, but it's still nice to just create it with just a script command.

Here is the link of the script for postgre and mysql: https://github.com/t3-oss/create-t3-app/tree/main/cli/template/extras/start-database

What do you think ?

OmegaHawkeye commented 5 months ago

Hey can you tell me more about this , and what would be my approach for making this work

OmegaHawkeye commented 5 months ago

+1 here.

The way I'd approach it is by adding a docker-compose file when the init script is run.

The compose file will have a container for mysql or Postgres. Then add a command to the package.json to run the docker-compose command if the database could not be found.