ndatmx is a daemon based project manager thingy i made to automate the
fetching and running projects. it monitors git repos for changes, pulls
commits, and then runs the project based on the conf file the project has.
stuff it has:
- it can pull shit from git repos
- it can start/stop/restart projects
- technically it can act as a dependency manager for projects?
- a lot of logging, and log rotation for projects
- a cli
to build the project, you need gcc/clang and cmake
mkdir build
cd build
cmake ..
makeoutput:
ndatmxd: the daemonndatmx: the cli tool
[daemon]
poll_interval = 5
log_retention = 14
restart_on_exit = true
restart_on_success = false
max_retries = 5
[commands:termux]
1="npm install"
2="npm run start"
[commands:debian13]
1="bun install"
2="bun run src/index.ts"start the daemon using the cli:
ndatmx start-daemonif you need to run it in the foreground to debug, then:
ndatmx start-daemon -f # or ndatmxd -fonce the daemon is running you can use the cli to add/manage projects
ndatmx add <name> <git url> [git branch]e.g.:
ndatmx add test-proj https://github.com/TheUnium/ndatmx-test.git mainndatmx listndatmx status [project name]ndatmx logs <project name> [num of lines from the end]ndatmx stop <project name>
ndatmx start <project name>
ndatmx restart <project name>ndatmx remove <project name>you can view and modify the config:
ndatmx config
ndatmx set poll_interval 5