Use Child_Process to pull code?
Yes, that is a simple opinion. Do it with one simple file: Now, you can write an API to call http://localhost:3000 to pull 3 project. You can `composer update` or something more.
Convert Interface in Typescript
I have one Interface: Convert fields in the interface to required The desired result is as follows: Solution: Convert fields in the interface to optional The desired result is as follows: Solution: Convert some fields by name instead of all The desired result is as follows: Solution: Convert fields in the interface to other value…
Compare strings and calculate scores, find the closest string
Compare strings and calculate scores, find the closest string by JS:
NestJS (NodeJS) sending message to Kafka topic is easy
NestJS (NodeJS) send message to Kafka topic easily in this quick trick: Create a new NestJS test project: Paste this code in main.ts: Install package: Make sure topic: ‘test-server’ was created on target Kafka server, and you are subscribing on that topic to watch the result. Run script: Note: Your script only runs if you…
Config Cyberpanel/ OpenLiteSpeed server to run NodeJS on port 80/443
If you use LiteSpeed, you can run NodeJS project as a PHP project. Step 1: Add a domain (example domain.com) to your server You need to: Create a folder to upload your code. Or create by Cyberpanel admin tool (recommend). Add new DNS record (A) from domain to your server IP Step 2: Modify the…