Threebot is a pluggable application server based on openresty and gevent servers and comes with lots of goodies by default.
Threebot is part of JumpscaleX. Make sure to follow the installation instructions
Using j.servers.threebot.start()
.
This will give you a ready shell in the same process where you can interact with your threebot:
*****************************
*** 3BOTSERVER IS RUNNING ***
*****************************
*** file: /sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py
*** function: start [linenr:295]
JSX>
The server starts with base
, webinterface
, myjobs
, oauth2
, alerta
and packagemanager
packages by default.
For a quick start, you can access myjobs
Threebot sever can be extended using packages, see documentation on packages here.
APIs can be added as actors to your package, which are exposed directly and can be accessed via http or using our gedis
clients for python or javascript, see documentation.
We use openresty (nginx) for serving requests. Inside a package, you can define different types of locations to handle these requests, for more information, check documentation.
Some core functionality are being added as a package:
Webinterface package is always registered when starting your threebot. It is responsible for
- exposing http endpoints for actors, wikis and gdrive.
- exposing websocket endpoints for actors
- exposing bcdbfs endpoints