For this purpose we must run both apps in different terminals, the backend can be run in dev or normaly, but the front only can be displayed on dev mode, or build it and preview it with the preview command
/backend: $ pnpm start
This run the server on localhost:3001
/frontend: $ pnpm dev
This run the app on localhost:5173
or
/frontend: $ pnpm build & pnpm preview
This build and run the app on localhost:4173
COMING SOON