I thoughtfully used ChatGPT and Gemini to develop a log monitoring app called Schmaybe. The app captures the line number and any new line in a log file. When it detects a change in the log file, it transmits the last line as JSON through WebSockets to any clients listening. It also includes the name of the file and the line number.
Watch the demo video on YouTube
Currently in alpha release.
A business scenario for using this log monitoring tool: A CEO comes to a product owner and asks them if their web server is up and if it is producing results. Now you can legitimately respond by saying, "Schmaybe!" The reason is that this tool was specially tailored to hone in on the exciting stuff in a log file.
Please make sure to refer to the readme.MD file in the proto-API folder. The server utilizes WebSockets on port 8765 to send messages to any listening client. You can also use a simple test client to ensure the server sends messages for a log file it monitors.
Boring angular stuff on how to set up and use Angular.
The Angular Web site is a client that uses web sockets to listen to the server monitoring on a specific port 8765, which is currently hardcoded.
This project was generated with Angular CLI version 13.3.4. Has been consistently updated since. The most recent update is Angular 18.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. You must first add a package that implements end-to-end testing capabilities to use this command.
For more help on the Angular CLI, use ng help
or the Angular CLI Overview and Command Reference page.
Show list of ports reserved
PS C:\Users\marcn\source\repos\User-Level-Up\ngUserLevelUp> netsh interface ipv4 show excludedportrange protocol=tcp
Start Off by just typing
npm run
npm run build
Also, beware of the need to use npm run install and npm run install-only commands.
Read readme.md inside of proto-api folder.