Open Thanaphat-Kalaya opened 7 months ago
I will first move the docs source code into the project repo so that we can collaborate on that @Thanaphat-Kalaya Then I will add my suggestions on how to address all the items you raised.
First step completed: https://github.com/wkspower/wks-platform/tree/develop/apps/react/docs The docs are automatically made available https://docs.wkspower.com/ when we integrate changes into the main branch.
Thanks a lot for moving the docs over to the project repo! It’s great to see everything centralized, which definitely helps streamline our collaboration. I’ve taken a quick look at this and everything seems set for us to dive into it together.
While I’m eager to contribute, I must admit I’m still a bit unclear on some aspects of the installation process that we might need to flesh out in the guide. To be honest, I still can't make it fully functional on my remote server. Could you possibly outline where you think my experiences could be most useful, where I messed up, or if there are specific sections you'd like me to focus on? I want to make sure I’m contributing effectively and addressing the right areas.
Looking forward to your insights and working together to make the installation process as smooth as possible for everyone.
Definitely @Thanaphat-Kalaya I am now reviewing the initial description of the issue to provide a suggestion on how to collaborate. Ideally, splitting them on different GH issues so that you can pick the ones you feel comfortable working with. Hopefully, you shall see them here in a couple of hours.
@Thanaphat-Kalaya regarding section "What I've Done/Step 2 - Following Installation Guide option 2". What errors did you need to ignore?
@Thanaphat-Kalaya What do you think about breaking down this issue into the following ones? Can you verify if they would address all the issues you raised? I am planning to provide initial info about them and see if we can take it from there.
@francav Cretate GH Issue: (documentation) Remote deployment Guide 1.0. Explain how multi-tenancy is designed and roles/requirements of Keycloak realms names and database names 1.1 Server requirements and setup configurations. 1.2 Common issues related to remote hosting and recommended solutions. 1.3 Tips for customizing environment variables and .yml/.yaml files. 1.4 Best practices for Keycloak and related security setups.
@francav Action Plan -> Cretate GH Issue: (documentation) Improve explanations for Installation Guides(options 1 and 2)
@francav Action Plan -> Create GH Bug: (case-portal) Case list won't reload after case creation unless websocket is active. @Thanaphat-Kalaya Maybe you can assign this one to you? Requires react knowledge only.
@francav Action Plan -> Create GH Issue: (documentation) To document websocket publisher and requirements (kafka)
Action Plan -> Create GH Bug for - Inconsistencies with environment variables and docker-compose files. @Thanaphat-Kalaya would you create this one?
Action Plan -> Create GH Bug with errors found when following Installation Guide option 2. @Thanaphat-Kalaya would you create this one?
Action Plan -> Create GH Bug for CORS errors when connecting to the Storage API. @Thanaphat-Kalaya would you create this one?
@Thanaphat-Kalaya regarding section "What I've Done/Step 2 - Following Installation Guide option 2". What errors did you need to ignore?
Recently, I tried to reproduce the initial errors I mentioned. Interestingly, I found that they no longer occur. It seems like those are related to my fault .env config files causing application startup failures. At that time, I found that the docker-full-startup.sh script could run without throwing errors. So I start debugging my configuration from there.
- @francav Cretate GH Issue: (documentation) Remote Deployment Guide
The list you provided seems good to me. I'm eager to see the initial draft. Once you've set up the basics, I'd be happy to help refine the details and make sure everything is clear and helpful.
- @francav Action Plan -> Cretate GH Issue: (documentation) Improve explanations for Installation Guides(options 1 and 2)
I did like to see those as FAQs. This approach would keep the main guide streamlined, preventing users from losing focus on the essential steps, while FAQs can address specific, common issues as they arise. What do you think?
- @francav Action Plan -> Create GH Bug: (case-portal) Case list won't reload after case creation unless websocket is active. @Thanaphat-Kalaya Maybe you can assign this one to you? Requires react knowledge only.
I must admit, my React & Java knowledge is quite limited for now, and my schedule is pretty packed for the next few months, so I might not be able to tackle this issue right now.
However, I'm happy to assist with other non-coding-related tasks or provide any other support you might need. Once I'm more familiar with the app setup, I can also help you with .env and some docker stuff too. Just let me know how else I can contribute!
- Action Plan -> Create GH Bug for - Inconsistencies with environment variables and docker-compose files. @Thanaphat-Kalaya would you create this one?
It seems more like a technical debt issue due to the early development process rather than a bug. I'm happy to create the case for this if you think it’s the best approach. Here's the issue #247. Just let me know how you'd like me to proceed further.
- Action Plan -> Create GH Bug with errors found when following Installation Guide option 2. @Thanaphat-Kalaya would you create this one?
Since it's my fault .env config files causing application startup failures, Once we complete the updated deploying guide, this issue might resolve itself, making a separate bug report may be unnecessary. I suggest we revisit the need for this bug report after we update the guide. Does that sound like a plan to you?
- Action Plan -> Create GH Bug for CORS errors when connecting to the Storage API. @Thanaphat-Kalaya would you create this one?
It is very likely that they may also be linked to my .env configuration errors. Like with the previous issue, I suggest we hold off on creating a bug report until we've updated the guide.
Current Issue
I've encountered challenges while trying to host the WKS Power platform on a remote server. The current documentation mainly focuses on localhost setups, and I struggled to find clear guidance for remote hosting. To improve user experience, a guide or additional resources dedicated to remote hosting would be beneficial.
Proposed Solution
A comprehensive guide for deploying the WKS Power platform on remote servers would be helpful. This guide could include:
I'm hoping the guide to outlines best practices for hosting the WKS Power platform on a remote server. Since I've encountered some issues running it on a remote server, I'm hoping that we can work together to find a solution.
What I've Done
To troubleshoot the issues I encountered, I tried the following:
Additional context
While troubleshooting, I faced the following issues:
I'm not experienced with Keycloak implementation and Java programming, so I might have misunderstood some aspects. Any guidance or additional resources would be greatly appreciated.