Story Book 1128 | DAY 59 ๐ SAP CAP POC
#2 |
#OperationSelfLearnings Same Application, Two Development Runtimes โ Local VS Code vs SAP Business Application Studio Today I took my SAP CAP Books POC one step deeper โ moving beyond simply getting the application to run and understanding where it runs, how we reach it, and why the runtime URLs differ.
๐ป Local VS Code I started the CAP application with: npx cds watch The runtime was available at:
localhost:4004 Here, localhost means the CAP Node.js process is running on my local machine.
โ๏ธ SAP Business Application Studio (BAS) I then ran the same CAP project using cds watch inside an SAP BAS Dev Space. CAP again listens on port 4004 inside the development environment, but the browser reaches it through a BAS-generated HTTPS URL that exposes the Dev Space port rather than through my machines localhost. Conceptually: Local Browser โ localhost:4004 โ CAP runtime on my machine BAS Browser โ BAS HTTPS URL โ port 4004 โ CAP runtime i...