Hi sir @buildwithhussain
I installed frappe in aws server. It runs in http://production.in:80. I set nginx port. my webserver port 8000, websocket port 9000.
Right now i tried react and vue js following your videos. For react it runs in http://production.in:8080 and also in localhost:8080.
I created a doctype in backend while i try to access via userFrappeGetDocList. The api call in header it goes like these http://production.in:8080/api/resource(these will not get data. It shows error) how to avoid these. if my api call is like
http://production.in/api/resource or http://production.in:80/api/resource this will work.
How to solve these sir. And another doubt can we get existing doctype using react, i seen for new doctype it creates type for existing can we get the data?
I solve this by setting proxyOption port to 80. I want to know can we get existing doctype via react?
For new doctype it creates type Right? for existing one what it will do ?
Yeah, you can get any doctype using the SDK.
If you want to generate types in bulk for existing doctypes, you have to modify the code in
frappe_types a little bit and call it from console in a loop.
Remove these 3 lines, import the function
create_type_definition_file, loop over the DocTypes you want to generate the Types for and call this function with that DocType’s document.
A better solution will be to implement these features in the app itself, let me have a chat with Nikhil.
Thankyou sir. While fetching doctype from react how to get its child doctype data? It’s not rendering. Any documentation for that.