Skip to content

AlexAntufiev/chatbot-constructor

Repository files navigation

PDD status Travis build

START PROJECT

Install Java 11

java

Install Node.js

Node.js

Install mode modules

  1. cd source_dir
  2. npm i

Setup IDE

Checkstyle

Download and install checkstyle plugin

Add checkstyle:

Settings - Editor - Code style - Java - *Gear* - Import Scheme - Intellij IDEA code style XML

Inspections

Add inspections: Settings - Editor - Inspections - Import profile

Annotation processing

Settings - Build, Execution, Deployment - Compiler - Annotation Processors - Enable annotation process - true

Build project

gradle build

Run project

gradle bootRun

Access to Chatbot Constructor

Main page

Main page

Swagger

Set development profile in application.yml: spring.profiles.active=dev

Access to swagger

Registration bot via ngrok in dev profile

Download ngrok

Start application in dev profile

./ngrok http 8090

Make webhook subscription via tamtam bot subscriptions (https://{ngrok_host}/tam/bot/581483330212)

Proceed to reg bot

Cloud configuration

consul

VPN

docker-ipsec-vpn-server

ip

89.208.84.173

user

cc-vpn-user

password

cbYKaiLGt8Fz5zD5

PSK

Ia/obKExB1IgJ/uQP+A5AQBTFG6COymw