Generate
SocialStack generate is probably the most convenient command to know and use. Based on the name of the module you want to make, it will generate the files for either a React component (a function hook based one by default) or a C# Api one, optionally as a content type.
The command is either the full word "generate" or "g" for short.
React component[edit | edit source]
socialstack g UI/AboutUs
socialstack g Admin/MaintenanceArea
socialstack g Email/MarketingGrid
The files are placed in ProjectRoot/UI/Source, ProjectRoot/Admin/Source or ProjectRoot/Email/Source respectively.
By default it will create the component and a scss styling file too. Both files contain examples of commonly used features from there.
C# Content type called "Cars"[edit | edit source]
socialstack g Api/Cars
The files are placed in ProjectRoot/Api. When creating a content type like this, the main file you edit next is the e.g. CarService.cs where you can then comment out the line which generates admin panel pages for you, and then e.g. Car.cs which describes the fields to store (and edit in the admin panel) for the content type. The content type file contains commented out examples of common fields too, like a name.
C# basic service[edit | edit source]
socialstack g Api/MarketingEmailTimer
The files are placed in ProjectRoot/Api. These things simply start when the services do and are a good place to put generic contentless behaviour which can optionally have configuration via GetConfig.