threefoldtecharchive / jumpscaleX_threebot

Apache License 2.0
0 stars 3 forks source link

Threebot Application Server

Threebot is a pluggable application server based on openresty and gevent servers and comes with lots of goodies by default.

Content:

Installation

Threebot is part of JumpscaleX. Make sure to follow the installation instructions

Starting the server

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

Applications and extensions

Threebot sever can be extended using packages, see documentation on packages here.

APIs

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.

Openresty (nginx)

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.

Core and example packages

Some core functionality are being added as a package:

Webinterface package

Webinterface package is always registered when starting your threebot. It is responsible for

Complete examples