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.


  1. 🧱 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

    image

  1. 🧠 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:

    πŸ“š Create Your First Microservice


  1. ✍️ 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.


  1. πŸ“¦ 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.


  1. πŸš€ 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


  1. πŸŽ‰ 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.

⚠️ **GitHub.com Fallback** ⚠️