Simulate logs in your terminal
Clone the repo and go into it:
git clone https://github.com/Mimexe/logsimulator.git
cd logsimulator
First of all, run the server:
node index.js
Or run the run.bat (for windows) or run.sh (for linux)
Then, the client will automatically start and watch for the logs.json
file change to update.
In the server, you can add logs by simply type in the terminal and hit enter.
To exit the server, type /exit
and hit enter or simply hit CTRL+C.
The client will exit automatically when the server is closed (gracefully).
You can clear the client terminal with /clear
command.
To start the server without starting the client, use the --no-client
flag:
node index.js --no-client
To start the client use the client
argument:
node index.js client
Note: You need a logs.json
file to make the client work. (without starting the server)
/exit
: Exit the server and the client/clear
: Clear the client terminal/help
: Show the help message/title <title>
: Change the title of the client
You need a logs.json
file to make the client work.
You can create one by running the server.
Or you can create one manually with this content:
[]