Welcome to SgCoders Net Development



On this page, we systematically walk you through the workflow development for this PHP (Laravel), MySQL and Nginx environment.

First we take a look at the server development.




Upon examining the server chart, we observe that when a web user accesses the domain, the traffic is directed to Cloudflare or other services before being redirected to our primary Web Server 1. The index.php file on Web Server 1 first checks the server load. If it is below a certain threshold (X%), the traffic continues to be handled by Web Server 1. However, if the server load exceeds X%, the traffic is redirected to Web Server 2, which may be on a different network.

Turning our attention to Database Server 1, we have implemented a RAID configuration to Database Server 2, along with a backup server on the same network. To enhance redundancy, we have implemented IP mirroring to synchronize the databases across Database Server 3 and Database Server 4, including the backup server.

While striving for a highly redundant network, it's crucial to note that this explanation serves as an understanding. When implementing this framework in our code, our PHP side must be prepared to support such methods. For instance, in the event of Database Server 1 being unavailable, the system will attempt to utilize Database Server 2. During this transition, the script will generate a "Loading page" for all SQL-involved commands, allowing Database Server 2 the time to recover and sync back to Database Server 1. Another scenario involves using Database Server 3, providing time for it to recover to Database Server 4 and subsequently syncing back to Database Server 2-1.




Now we understand the server setup. We shall now understand the coding side.





The framework will be managed through GitHub, where coders will receive a link to our staging branch. All codes undergo a thorough review and manual approval process by our Code Approval team before being merged into the staging branch. The transition to the MAIN branch occurs only when we achieve a benchmark for a specific function or code.

There are six principles that you need to adhere to and practice whenever you create ANY functions. For example, when creating a CRUD page, you must assess whether you have designed and covered the six principles outlined in the chart. If the answer is yes, you can then submit the code for our Code Approval.

Anything else kindly refer to Eric or Skype Group. All payment methods shall not be discussed in group and ony PM Eric in skye for it.






We plan to construct this project utilizing a website admin/members backend template as our foundation. Our approach involves systematically addressing each function, starting with the dashboard. By navigating through the menus and sub-menus, we will examine the associated numbers for clarity.

For the admin panel, our reference is
https://skstaging.ezymlm.net/admin/index.html

Members Panel is
https://skstaging.ezymlm.net/member/index.html

Additionally, we have a public e-commerce page where individuals can purchase items and enroll as members.

Visitors to the site receive a referral code, accessible at http://www.abc.com/REFFERAL_USERNAME/.