Im using reactjs as front end and go as backend with mysql as its database. so inorder to parse the .js files im getting an error
The below code in parse files
my folder structure is src/app in that app folder i have different subfolders which contain js files. subfolders like src/app/home/index.js , src/app/Admin/AdminUsers.js
I have created another folder src/app/go/personalDetails.go which contain the go files
Yes, but the problem here is if i use parseglob we need to import html/template…which throws an error as im working entire project with reactjs as frontend… so if i need to navigate or parse through the entire project …did u understand the question now?
This is the folder structure of my project
I undetrstood that you are using reactjs and I understood that your go code doesn’t find files.
I do not understand though, why you insist on react this way.
The first thing you need to get to run, is that templates are rendered and delivered to the client. As long as your server implemented in go does not find the templates or render them correctly, the client side is irrelevant. If and when go does its job correctly, then you can ask in a rectjs forum, why your javascript-stuff isn’t working
Also you still haven’t shown how you start your server, from where you do it and how the file tree looks from your working dir when starting the server.
Perhaps actually showing some more error messages or a minified github repository which shows your problem and process would be nice.
Do you want to transform them while traversing their AST? Do you simply want to send them anywhere? Do you want them to be executed in a given context?
for example if i have a page personaldetails.js where there are textboxes to be filled…if we fill those text boxes then it should be saved to the database mysql…so im using go to save the details of my applicationor project
The directory for my go is src/app/go/ go run personalDetails.go
I believe what @NobbZ is trying to suggest to you is:
Your backend which would be written in go will interact with database and it will expose some APIs to handle data exchange. Ones you have all you APIs functional, your UI will be making API calls to your backend requesting user information, storing data etc.