nicoalbanese / kirimase

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

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

Open corentin-bot opened 9 months ago

corentin-bot commented 9 months ago

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 ?

Divineleo2001 commented 9 months ago

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

Salahuddeen commented 8 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.