Sha256: 22a7ace79cf4a624d7b70bf5fde06bb75358f36461a0d81457b1de0fd179ff6d

Contents?: true

Size: 1.08 KB

Versions: 7

Compression:

Stored size: 1.08 KB

Contents

# @title Building a gem-based application using Vedeu
# Building a gem-based application using Vedeu

In this tutorial, I hope to guide you through the process of
building a simple application which uses the Vedeu framework as part
of a gem.

We're going to build a Slack bot. This bot will simply relay the
messages sent to a specific channel to your terminal to be displayed.
In a future episode, I might extend this to be able to send messages
back too to demonstrate other aspects of Vedeu, but one step at a
time.

## 1) Create a gem.

Firstly, let's create an empty gem. I'm going to use my name in
underscored form as the name of my bot; he is just a listener (unlike
me as I'm usually quite noisy.)

    bundle gem gavin_laking

Next, we edit the `*.gemspec` file to add `vedeu` and
`simple-slack-bot` as dependencies. You may also what to update other
aspects of the gemspec file here, but I'll leave that with you.

    spec.add_dependency 'vedeu'
    spec.add_dependency 'simple-slack-bot'

Now, run `bundle`, and we should see the 'Bundle complete!' message.

@todo Add more documentation.

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.8.32 docs/applications/gem_application.md
vedeu-0.8.31 docs/applications/gem_application.md
vedeu-0.8.30 docs/applications/gem_application.md
vedeu-0.8.29 docs/applications/gem_application.md
vedeu-0.8.28 docs/applications/gem_application.md
vedeu-0.8.27 docs/applications/gem_application.md
vedeu-0.8.26 docs/applications/gem_application.md