Example: Developing a Microservice Using C and GNU GCC - MicroserviceStore/Microservice GitHub Wiki
Microservice development is toolchain-agnostic; youβre free to use any language or environment. That said, hereβs a simple, concrete example using the C Programming Language and the GNU GCC compiler.
-
π§± Step 1: Create a Repository using the Template Repository
You can use the following template C repository to create your Microservice repository.
π https://github.com/MicroserviceStore/us-Template-C
-
π§ Step 2: Download CPU-Specific Development Files
Microservices must target specific CPU architectures (e.g., Arm Cortex-M0, M33, RISC-V).
π₯ Follow this guide to download architecture-specific SDKs:
-
βοΈ Step 3: Implement Your Microservice
Open the template project and follow the instructions in:
π us-Template-C/README.MD
This file walks you through creating and customising your Microservice logic.
-
π¦ Step 4: Package Your Microservice
When ready, use the following command to generate the final Microservice package:
make package CONFIG=<CONFIG_NAME>
π This creates a ZIP file at:
Output\ <CPUCORE>\GCC\MSStore_<MICROSERVICE_UNIQUENAME>_<VERSION_STR>.zip
More details in the template's README.MD.
-
π Step 5: Submit to Microservice Store Login to your Microservice Store dashboard and upload your Microservice Package.
π Reference: Create Your First Microservice in the Store
-
π Congratulations β youβve just taken your first step into the new embedded era!
β Youβve created and packaged a π fully isolated, π¦ deployable Microservice, ready for π secure distribution and π° monetisation.