We’re excited to share that starting with WaveMaker 11.13, you can now use ng serve with WaveMaker exported Angular apps. This enhancement allows users to locally serve, test, and debug their generated Angular projects outside WaveMaker Studio with greater ease and flexibility.
How to Use ng serve with Your Exported App
Follow these steps to get up and running:
1. Export your project
- In WaveMaker Studio, Click on Export Project -> Project as an Angular zip.
- Download and extract the ZIP.
2. Install dependencies
3. Run the app locally
The app runs locally at http://localhost:4200 similar to standard Angular app.
At this point, services/APIs will not load yet.
Configuring Backend Services
The wavemaker application's backend server should be running/hosted either locally or in a remote server. That backend server url should be configured in the proxy configuration file.
- Open the proxy.conf.js file in the exported app.
- Update path targets with backend server URL.
- If required add the paths, based on the app use cases.
Sample proxy.conf.js entries:
Then re-run again with new proxy configuration.
Now app will load APIs and services properly in the browser.
With ng serve working, we can now debug the WaveMaker Angular app locally like any standard Angular application.
Refer this documentation to extend WaveMaker generated Angular applications.