Code Monkey home page Code Monkey logo

botium-box-basic-dist's Introduction

Botium Box - Community Edition

Botium Box is running on standard components available for free. You can install it on your own server (on premise), or use cloud providers for serverless installation, or even a mixture of those approaches.

Botium Box Serverless Installation

Botium Box can be installed "serverless" using existing cloud services.

Prerequisites

Prerequisite 1: Redis

Get Redis - a free instance from https://redislabs.com/ as a starter. From the "Configuration" please note the Endpoint and the Redis Password for later use (you can choose any Redis username when configuring Botium Box later).

Prerequisite 2: Prisma

Get Prisma - a free instance running on Heroku as a starter. See here. From the Heroku Dashboard, open the "Settings" tab, then "Reveal Config Vars", the environment variable named "CONFIG" shows the "Management API Secret" - you will need this later. The Heroku endpoint is required later as well.

Botium Box Deployment

Deploy to Heroku

Deploy

Fill in the environment variables from what you know from above, and afterwards navigate to the Heroku App.

Attention: the Heroku free tier is not suitable for Botium Box production usage

Build and run Docker Container

For hosting Botium Box as Docker, use these commands to build and run a Docker image:

> git clone https://github.com/codeforequity-at/botium-box-basic-dist.git && cd botium-box-basic-dist
> docker build --build-arg BOTIUMBOX_QUEUE_REDISURL=redis://redisuser:redispassword@redishost:redisport --build-arg PRISMA_ENDPOINT=https://my-prisma-endpoint/demo/dev --build-arg PRISMA_MANAGEMENT_API_SECRET=my-prisma-management-api-secret --build-arg PRISMA_SECRET=something123 --build-arg JWT_SECRET=something123 -t botiumbox .
> docker run -p 4000:4000 botiumbox

Botium Box will now run on http://localhost:4000

For some log output, run this command instead:

> docker run -p 4000:4000 -e DEBUG=botium* botiumbox

Botium Box Standalone Installation

You can run Botium Box on your own server.

Prerequisites

Download, build and run from NPM registry (recommended)

Prepare Backend services

  1. Download docker-compose.yml and save to your local hard drive.
  2. Start backend services (includes Prisma, MySQL and Redis) by running docker-compose:
> docker-compose up

Download and run Botium Box

  1. Download Botium Box:
> npm install -g botium-box
  1. Run Botium Box:
> botium-box-cli start --pe http://127.0.0.1:4466/box/dev -r redis://127.0.0.1:6379 -p 8080
  1. Point your browser to http://127.0.0.1:8080

Download, build and run from Git repository

> git clone https://github.com/codeforequity-at/botium-box-basic-dist.git && cd botium-box-basic-dist
> npm install
> npm run start-standalone:backend
> npm run start-standalone:frontend

Botium Box will now run on http://localhost:4000

Installation and startup can take a while, especially on first usage.

Botium Box Hybrid Installation

It is possible to mix the above architecture: Prisma, Redis and Botium Box are loosly coupled, you can choose whatever your infrastructure suggests as best option - Prisma and Redis in the cloud, Botium Box locally. Or run Prisma locally, Botium Box in the cloud and use an existing Redis service - it's totally up to you.

The only thing you have to make sure is connectivity between Botium Box and Prisma as well as Redis service.

Login to Botium Box

Default username: "admin"

Default password: "nooneknows"

Have fun.

botium-box-basic-dist's People

Contributors

codeforequity-at avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.