/lightbot-backend

Lightbot Backend

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Lightbot Backend

Note: Initial boilerplate from ts-backend-boilerplate. For more info on commands to run check that repo.

Build Status

About

Lightbot Backend contains an GraphQL API for the Lightbot Editor to build your bot. It also contains an API to have conversations with a deployed bot via Lightbot Widget.

The Lightbot Backend can currently deploy a bot on Dialogflow and RASA NLU.

Up and Running

Requirements

  • Node.js >= 10.x
  • Yarn
  • Docker & Docker-compose

Steps

The first step to run this Backend is copying the .env.example file and editing it with correct values. The defaults should work for development.

Next run the local docker-compose setup with yarn docker:up
Install dependencies: yarn
Run dev migration and seed: yarn migrate:dev
Start development server: yarn dev

The default login for local development:
email: test@lightbot.io
password: Test1234

Installation

yarn install
yarn dev

Build

yarn build

Test

yarn test

Lint

yarn lint:ts
yarn lint:prettier
yarn lint:fix