chore: update dev environment

This commit is contained in:
Alexander Navarro 2025-04-24 15:57:09 -04:00
parent f5e398c933
commit 9246964edb
5 changed files with 84 additions and 26 deletions

8
.idea/runConfigurations/Dev.xml generated Normal file
View file

@ -0,0 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Dev" type="CompoundRunConfigurationType">
<toRun name="Run compendium" targetId="RsBuildProfile:dev" type="CargoCommandRunConfiguration" />
<toRun name="dev-database-pg" type="docker-deploy" />
<toRun name="Vite Dev Server" type="js.build_tools.npm" />
<method v="2" />
</configuration>
</component>

View file

@ -0,0 +1,16 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Vite Dev Server" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="dev" />
</scripts>
<node-interpreter value="$USER_HOME$/.bun/bin/bun" />
<package-manager value="$USER_HOME$/.bun/bin/bun" />
<envs />
<EXTENSION ID="com.intellij.lang.javascript.buildTools.npm.rc.StartBrowserRunConfigurationExtension">
<browser start="true" url="http://localhost:3000" />
</EXTENSION>
<method v="2" />
</configuration>
</component>

View file

@ -0,0 +1,36 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="dev-database-pg" type="docker-deploy" factoryName="docker-image" activateToolWindowBeforeRun="false" server-name="Podman">
<deployment type="docker-image">
<settings>
<option name="imageTag" value="docker.io/library/postgres:latest" />
<option name="containerName" value="dev-database-pg" />
<option name="envVars">
<list>
<DockerEnvVarImpl>
<option name="name" value="POSTGRES_PASSWORD" />
<option name="value" value="password" />
</DockerEnvVarImpl>
</list>
</option>
<option name="portBindings">
<list>
<DockerPortBindingImpl>
<option name="containerPort" value="5432" />
<option name="hostPort" value="5432" />
</DockerPortBindingImpl>
</list>
</option>
<option name="showCommandPreview" value="true" />
<option name="volumeBindings">
<list>
<DockerVolumeBindingImpl>
<option name="containerPath" value="/var/lib/postgresql/data" />
<option name="hostPath" value="dev-database-pg-data" />
</DockerVolumeBindingImpl>
</list>
</option>
</settings>
</deployment>
<method v="2" />
</configuration>
</component>