Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.27 KB

installation.md

File metadata and controls

73 lines (52 loc) · 1.27 KB

Installation

Pre-requisite

1/ Python https://www.python.org/downloads/

  • 2.7
  • 3.5

2/ Redis server https://redis.io/download

3/ Internet access (Business Messaging and additional API)

Depend on of your integration:

  • Microsoft LUIS
  • Google translate
  • APIs...

Get the Application

Get the project

  • git clone https://github.com/guillain/CoreBot-framework.git

Move into the application folder

  • cd CoreBot-framework/app

Install packages

  • npm install

Standalone server

Node

Run it manually (debug/dev):

  • DEBUG=* node CoreBot-framework.js

Control+C to exit

PM2

Run as daemon (recommanded)

  • pm2 start CoreBot-framework.js

Status

  • pm2 status

Stop

  • pm2 stop CoreBot-framework

Delete

  • pm2 delete CoreBot-framework

Mass operation

  • pm2 start all
  • pm2 stop all
  • pm2 reset all

Docker image

The image is provided by AWS with specific account. Thanks to request access before and use the image script to do that easily ;-)

Login in your AWS env. aws configure

Get the image

  • ./image get

Run the container with the image

  • ./image run

Get the status

  • ./image status