Create the Loyalty Point Extension

In order to start we need to create the basic extension structure including all folders and configuration files. The sgconnect command will do this for us.

Create a New Extension

Create a new extension using sgconnect.

  1. Open a Terminal
  2. Navigate to the application folder which was created in the tutorial Setup your environment
  3. Run cd extensions/ to navigate to the extensions folder of the application
  4. Run sgconnect extension create
  5. When asked about the type of extension you plan to create leave frontend and backend selected. Press enter
  6. Enter the name @myAwesomeOrganization/loyaltyPoints. The extension name has the following format: @{organizationId}/{extensionId}
  7. When asked if the extension needs to run in a trusted environment select no. Trusted environments will be explained in other tutorials.