Skip to content

daper/actionhero-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActionHero Demo for MallorcaJS talk

Slides

What's inside?

  • A complete sendMail example following the framework guidelines.
    • sendMail action.
    • sendMail task.
    • mail initializer.
    • mail config.
    • Applied changes in config to be able to launch 2 AH instances. One to listen actions and the other to process tasks.
  • An AH twitter server copied and adapted from actionhero-tutorial
    • twitter server config.
    • twitter server.
    • Changed the example chat.html to see tweets.
    • Twitter server will use the cache lock system to demonstrate how it works when it has more than one instance listening for tweets.

How to run it?

Change first config files:

  • config/servers/twitter.js
  • config/mail.js

Then:

  • docker-compose run --rm -e ENABLE_TCP_SERVER=1 ah npm start
  • docker-compose run --rm -e ACTIONHERO_ROLE=worker ah npm start

About

Code used in MallorcaJS talk about ActionHero.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published