Start an event reminder WebSocket server. Any client can connect and send formatted command to the server. The event reminder command lets add an event and define a time in milliseconds after which all connected clients are informed of the event reached time.
Without any configuration the website will listen on the 8999
port. That can be changed in the configuration or with the env TURBULENT_WS_PORT
. No console message is displayed to acknowledge the good start.
{
"command": "COMMAND_NAME",
"options": {}
}
{
"command": "ADD_EVENT_REMINDER",
"options": {
"name": "EventName",
"time": 1000
}
}
| time
is in milliseconds
All the message from the client must be stringify elsewhere the client will be notified by an error.
Starts the application in development using nodemon
and ts-node
to do hot reloading.
Lint the entire project
Format all the files in the project
Format a file afther it has beem save
Start the project tests
Start the project tests and display the test coverage
We can easily improve this project by adding some tests and some overall management like configuration.
Furthermore, nothing has been done for the compilation and the deployment (like a Dockerfile) and we could add some documentation too.
| @Credits for the starter kit: stemmlerjs/simple-typescript-starter