You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still working this issue out, please hold tight. Once this block is removed I'm done with the issue. :)
Summary
The current starter kit provides a clean base for spinning up a FiveM server with Bun, but has no built-in story for database access, containerized development, etc yet.
This issue proposes adding following optional flags which execute some defined set of code:
Optional --db + --db <provider> + --db=<provider> flag. Which should in turn:
setup an empty database for the given provider (sqlite, mysql, postgresql, etc)
create a user for the created database
setup environment variables / config server variables for the database
Optional --docker + --docker <provider> + --docker=<provider> flag which depends on the --db flag. Which should in turn:
create a docker compose file for the configured provider
compose the docker container
trigger the action otherwise triggered by the --db flag which will then setup the database inside of the container
Optional --orm + --orm <provider> + --orm=<provider> flag. Which should in turn:
setup a new typescript project inside the root of the project
/fxserver
|_ /database <- here
|_ /scripts
|_ /server-data
install the dependencies required to use the selected ORM (Mikro-ORM, Prisma, etc)
optionaly trigger the functions used by the --docker or --db flags for further setup and configuration
My Motivation
The Possible Benefits
What Could Lead To Deriving From Initial Project Purpose
Important
I'm still working this issue out, please hold tight. Once this block is removed I'm done with the issue. :)
Summary
The current starter kit provides a clean base for spinning up a FiveM server with Bun, but has no built-in story for database access, containerized development, etc yet.
This issue proposes adding following optional flags which execute some defined set of code:
--db+--db <provider>+--db=<provider>flag. Which should in turn:--docker+--docker <provider>+--docker=<provider>flag which depends on the--dbflag. Which should in turn:--dbflag which will then setup the database inside of the container--orm+--orm <provider>+--orm=<provider>flag. Which should in turn:--dockeror--dbflags for further setup and configurationMy Motivation
The Possible Benefits
What Could Lead To Deriving From Initial Project Purpose