- Call very few external programs (like df/load/uptime/etc), if any. (parse the file system for info, if possible)
- Linux version does not use external programs at all and rely exclusively on /proc and /sys and connecting to locally listening daemons. (except for extensions, listed below)
- Don't go nuts with eye candy. Don't use ajax. Make viewing the info on text only browsers possible and easy.
- Any javascript ever used must degrade gracefully
- Don't give info that can be exploited and turned into a security risk, especially not names and command line arguments given to running programs.
- Don't use blatantly slow methods such as preg_split(), especially not in loops
- Use tabs for indention. This is legacy and probably should be 2 or 4 spaces instead
- Opening curly braces go on same line. Closing curly braces go on their own line.
- Look at existing code for more details
- Install Docker Compose
git clone
the project anywhere you'd like- Run
cp sample.config.inc.php config.inc.php
- Run
docker-compose up -d
- Access the web interface at http://localhost:8081/
Since your project root is mounted to the virtualized environment, any changes you make will appear immediately.
This is only necessary if you are editing Javascript or Sass files.
- Install NPM
- Run
npm install
to install dependencies - Run
npm run dev
for the development build - Before checking in, run
npm run production
- E-mail diffs to [email protected]
- Pull requests on github - https://github.com/jrgp/linfo