Compare commits

..

2 commits

Author SHA1 Message Date
e93303d232 chore: Convert existing .bat files to shell scripts 2024-11-08 00:11:09 +01:00
a2cf29be34 feat: Setup development environment
The environment includes java, maven, IntelliJ and a postgres server.
2024-11-08 00:10:09 +01:00

View file

@ -7,7 +7,11 @@
}:
{
imports = [ ];
imports = [
./nix/kafka.nix
];
# https://devenv.sh/basics/
# env.GREET = "devenv";
# https://devenv.sh/packages/
packages = [
@ -49,14 +53,45 @@
"distributed-ticketing"
"distributed-test"
]);
# initialDatabases =
# map
# (n: rec {
# name = n;
# user = "flexinale";
# pass = "flexinale";
# schema = pkgs.writeText "${name}.sql" ''
# CREATE DATABASE "${name}";
# GRANT ALL PRIVILEGES ON DATABASE "${name}" TO "${user}";
# '';
# })
# [
# "monolith"
# "modulith-1"
# "modulith-2"
# "distributed-backoffice"
# "distributed-besucherportal"
# "distributed-ticketing"
# "distributed-test"
# ];
};
# https://devenv.sh/scripts/
scripts.monolith-load.exec = ''
cd ${config.env.DEVENV_ROOT}/flex-training-flexinale
mvn test -Dtest=testdata.TestDataLoader -pl flexinale-monolith -am
scripts.hello.exec = ''
echo hello from $GREET
'';
# enterShell = ''
# hello
# git --version
# '';
# https://devenv.sh/tasks/
# tasks = {
# "myproj:setup".exec = "mytool build";
# "devenv:enterShell".after = [ "myproj:setup" ];
# };
# https://devenv.sh/tests/
enterTest = ''
echo "Running tests"