ElixirStudyGroup / assemble_the_minions

A playground for creating an army minions to do our bidding
2 stars 5 forks source link

Feature: An interface from the outside #6

Open knightstick opened 8 years ago

knightstick commented 8 years ago

At the moment, we're getting the minions to do things by running the app with iex, then issuing commands. What are the best ways of asking a minion to do things from "outside"? I.e. do we want to have the application running on a server somewhere, then issues commands from the command-line over an API?

Thoughts @mfeckie ?

mfeckie commented 8 years ago

We could readily make the system into an API. We can add a web server to it, or we could do something with straight TCP.

If you're keen on a web server approach, we can use Plug + Cowboy, there's a neat little guide on the basic wiring here https://elixirschool.com/lessons/specifics/plug/

mfeckie commented 8 years ago

As far as opinions go, I think implementing a web server really pushes us into developing skills that are usable for 'real work'

knightstick commented 8 years ago

developing skills that are usable for 'real work'

Is that a pro or a con? ;)

Maybe I'll take a look into server-ifying it, then we could host it and have our minions look down on us from the cloud...

mfeckie commented 8 years ago

Total pro, building API and server is our thing right? :)