How do I deploy a mock json data(json-server) Api's along with Angular 17 application in an apache tomcat 9 server?
- I need to deploy an Angular 17 application.
- I also want to run a mock json data(json-server) created in that angular application which I used for crud operations.
- Where I need the json database to run automatically while running the server.
- I have installed Apache Tomcat server and I need to deploy the above requirements.
I have tried the endpointsin my package.json, and want it to run automatically in a script but it does not work properly.
For example:-
Step 1:-
npm install -g concurrentlyStep 2:- add the following into the package.json file:
step 3:-
npm startThis will run both angular application and json database automatically at a time and deploy it in your server.