GithubHelp home page GithubHelp logo

varmoh / buerokratt-chatbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buerokratt/buerokratt-chatbot

0.0 0.0 0.0 129.54 MB

Shell 0.20% JavaScript 2.42% Python 3.45% TypeScript 71.17% HTML 0.32% Handlebars 2.99% Dockerfile 0.15% SCSS 19.31%

buerokratt-chatbot's Introduction

Bürokratt's Chat Bot

Scope

This repo will primarily contain:

  1. Architectural and other documentation;
  2. Docker Compose file to set up and run Bürokratt's Chat Bot as a fully functional service;

Dev setup

  • Clone Ruuter
  • For Apple Silicon, replace Ruuter's Dockerfile line and add platform specification FROM --platform=linux/amd64 openjdk:17-jdk-alpine
  • Ruuter has an unresolved issue with allowing cross-origin credentials to be sent, for now fix this by adding: .allowCredentials(true); to line 24 in CORSConfiguration.java
  • Navigate to Ruuter and build the image docker build -t ruuter .
  • Clone Resql
  • Navigate to Resql and build the image docker build -t resql .
  • Clone Data Mapper
  • Navigate to Data Mapper and build the image docker build -t datamapper-node .
  • Clone TIM
  • Go to src -> main -> resources -> application.properties & modify security.allowlist.jwt value to security.allowlist.jwt=ruuter-v1-public,ruuter-v1-private,ruuter-v2-private,ruuter-v2-public,dmapper,resql,tim,tim-postgresql,chat-widget,customer-service,127.0.0.1,::1
  • Go to src -> main -> resources -> application.properties & add auth.success.redirect.whitelist=http://localhost:8085,http://localhost:8085/auth/callback
  • Navigate to TIM and build the image docker build -t tim .
  • Clone Chat Widget
  • build chat widget image docker build -f Dockerfile.dev -t chat-widget .
  • Clone Customer Service
  • build chat widget image docker build -f Dockerfile.dev -t customer-service .
  • Install Python
  • Navigate to setup and run python3 generate-certs.py
  • Navigate to current repo and run docker-compose up -d
  • Go to http://localhost:3004/et/dev-auth

Database setup

  • For setting up the database initially, run docker run --platform linux/amd64 --network=bykstack riaee/byk-users-db:liquibase20220615 --url=jdbc:postgresql://users_db:5432/byk --username=byk --password=01234 --changelog-file=./master.yml update
  • Run migrations added in this repository by running the helper script ./migrate.sh
  • When creating new migrations, use the helper ./create-migration.sh name-of-migration which will create a timestamped file in the correct directory and add the required headers

TIM Cookies

  • To be able to use endpoints, you must have a valid cookie generated by TIM so that TIM can validate it
  • for example in test DB To create a valid TIM JWT, call cs-login and pass {"login": "EE30303039914"} and then copy the value of jwt response and added it as the value for the cookie named customJwtCookie

PR dependencies

  • For PDF generation (Saving chat in Chat-Widget) to work - Datamapper image has to be built using this PR buerokratt/DataMapper#12

buerokratt-chatbot's People

Contributors

ceirowe avatar 1ahmedyasser avatar helemand avatar joonasroosalung avatar minwasko avatar turnerrainer avatar varmoh avatar klvig avatar baha-a avatar trevorling avatar paulamerle avatar sergeirudz avatar janaliiv avatar markokull avatar tarmoklaarria avatar kristjanmn avatar sigritsiht 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.