SolaceDev / solace-dev-tutorials

Repo for Solace Tutorials. Located at tutorials.solace.dev
MIT License
7 stars 8 forks source link

Solace Tutorials

This repo will manage the Solace Tutorials, which helps developers get up to speed sending and receiving messages with Solace technology.

Netlify Status Broken Links Checker

Quick Start

  1. Clone repo
  2. Install dependencies npm i
  3. Run server npm run develop

Naming Conventions For Solace Samples

Tutorials

Sample code

Snippets in tutorial

Development

Referring to code snippets lines from github

  1. Define the git repo in the gatsby-config.js file as follows

    {
    resolve: `gatsby-source-git`,
    options: {
    name: `{Lang}-Samples`,
    remote: `{git_repo_url},
    commit: '{commit_number}'
    }
    }
  2. In your tutorial markdown file (under src/pages/tutorials/{api}/{tutorial}.md), refer to your code snippet as follows

    `embed:{Lang}-Samples/{path/to/file}#L{start_line}-{end_line}`

    For example embed:JCSMP-Samples/src/main/java/com/solace/samples/jcsmp/patterns/DirectProcessor.java#L131-153