Node based server for Sellerspot Localconnect to coordinate offline communication between POS and local database
The node application uses pkg to package the node application into a standalone executable file.
- In
package.json
:- The
bin
key indicates the entry point javascript file of the server. In this case, it isdist/app.js
after typescript build usingyarn run build
. - The
pkg
key is used to addassets
andscripts
stored in thedist/
folder. Assets and special scripts used by the node application should be mentioned here, or they will not be packaged, causing runtime error
- The
- To package the application:
npx pkg package.json
The tray icon and it's configuration can be customized at src/middlewares/systray.ts
.
- Creating and setting up server.
- Stable packaging of server into a standalone application.
- Tray icon feature to interact with the server.