Read more about the project here.
Use scripts defined in package.json to run the apps.
cd spin-win
pnpm installIn this project, we've chosen to use pnpm over npm for several reasons. pnpm is an alternative package manager for Node.js that is designed to provide faster, more efficient package installation. Unlike npm, pnpm creates a non-duplicated storage of all package files, which results in less disk space usage and faster installation times. Moreover, pnpm maintains strict linkage of packages which can avoid certain classes of bugs that are present in npm or yarn. This enhanced performance and stricter package control make pnpm an optimal choice for our project.
pnpm start:slot-machine-apipnpm start::slot-machineIn your local launch.json create a new entry like this:
{
"cwd": "${workspaceFolder}/spin-win/apps/slot-machine-api",
"type": "node",
"request": "launch",
"name": "API",
"skipFiles": [
"<node_internals>/**"
],
"runtimeExecutable": "pnpm",
"runtimeArgs": [
"watch:debug"
],
"outFiles": [
"${workspaceFolder}/spin-win/dist/apps/slot-machine-api/**/*.js"
],
"outputCapture": "std",
"console": "integratedTerminal"
}