@revant_one
Hi revant one, sorry for bothering, but I am not working on erpnext full time, it’s a small side project I was assigned to, so I kinda have very little time to dig deeply into docs. I am kinda lost and all this is new to me.
I wanted to ask you, is this the expected result of your angular spa test ? (one page with a Welcome popup)
What I did was I downloaded a new VMbox of frappe (develop) and I simply copied your app folder and installed it on the default site (localhost, I didn’t create a new site, was this a wrong thing to do?). and I fixed the proxies to
and in package.json for the npm start command:
“start”: "ng serve --proxy-config ./proxy-config.json --host ‘localhost’ --port 4200 --deploy-url ‘/portal_spa/’
However I am getting these missing assets errors in terminal, if you can give me a clue what’s that, I would be very grateful.
I am trying to achieve a productive environment for development, what I did is the following:
Since I am using a Windows machine, I am running erpnext using your develop virtualbox
I set a bridge connection between the host (Windows) and the guest (Ubuntu)
In my Windows host machine I have my VS Code, I installed ftp-sync extension so I can instantly upload my updated files on saving to my virtualbox image (ubuntu guest).
While on the guest, I did bench start in frappe-bench, and in the custom portal spa I run the angular (npm start) which is located in the apps folder (and installed in the default site), I am seeing my changes I am doing in my host on the guest’s firefox by browsing to localhost:4200/portal_spa (inside GUEST).
It’s working fine, it’s taking about some seconds to sync for every change, but is there an easier way for it without using ftp sync?
I have tried to run the angular app in the host while changing the IP in the proxy.config.json and scripts in package.json.
I can browse to erpnext in my host’s browser using :8000/desk…etc just fine, however , when browsing to :4200/portal_spa (In case i run the angular app in host, not in the guest in bench frappe) it is always showing the old files of build, as i it’s like actually showing :8000/portal_spa. I guess this cannot work since it’s not actually located insited frappe-bench folder?