Hi everyone, I am interested in contributing to the React part of the OWA generator app, but I haven’t been able to find much resources on how to contribute to the repository. However I have setup the generator locally and I have been playing with it for a while, I have also looked at some old and new PR to get a better understanding of the project. Can someone please direct me to resources I could use to better understand the generator, or the issues page so I know what features need to be implemented. Thanks.
The generator is just a Yeoman implementation, so you can learn what you need to know about development here.
Hii @jeiddiah Good to see you creating a thread For future also feel free to create threads about any errors or problems you will be facing in case you didn’t get any solution on this thread.
I am providing you some resources as well as some hints on how generator works :
This is the main repository :
First of all you should try scaffolding a webapp and deploy it using any openmrs platform whether its sdk or standalone (as you have already setup the generator locally). you can check the deployed app by visiting the OWA module.
For building apps, you should try setting up your development environment (whatever IDE you like). We use ES6 so you should also have a look at some tutorials on how you can integrate ESLint with your IDE.
Now, I am giving you a brief guide on how generator works :
here the code for our webapps reside. Its the template containing different technologies :
Link to a file which contains the code which controls the working of the generator is here
Here you will find the functions which are needed to copy your new react files to the template. Below that you will find more such functions to copy some more things like images, html, etc.
I think that much info will be enough to give you a basic understanding about the generator. If you have some ideas or features in mind, don’t hesitate to post or create ticket about it here. Note : For getting permissions for issues, you need to request the helpdesk. (if you haven’t)
Thanks Have a good day !
Thanks @antikumar, I’ll look into all this.