Coder Social home page Coder Social logo

varmoh / training-module Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buerokratt/training-module

0.0 0.0 0.0 22.09 MB

License: MIT License

Shell 1.65% JavaScript 1.06% Python 2.08% TypeScript 78.64% HTML 0.08% Handlebars 3.91% Dockerfile 0.19% SCSS 12.40%

training-module's Introduction

Bürokratt's Training Module

Bürokratt's Training Module is a tool to help primarily customer support agents and service managers to create, edit and otherwise manipulate Bürokratt's e-services via a graphical user interface. This includes setting up Ruuter- and Rasa-based user stories, making X-road / REST / database requests where and when appropriate and so forth.

Technically, it is a service combined of different generic technical components, meaning that there is no custom Training Module component as such.

Scope

This repo will primarily contain

  1. Architectural and other documentation;
  2. Docker Compose file to set up and run Bürokratt's Training Module as a fully functional service;
  3. Tests specific to Bürokratt's Training Module.

Notes for the Developers

Docker related (local development)

  • Clone TIM

  • Go to src -> main -> resources -> application.properties & modify security.allowlist.jwt value to security.allowlist.jwt=ruuter,resql,resql_users,tim,tim-postgresql,node_server,data_mapper,gui_dev,127.0.0.1,::1

  • Navigate to TIM and build the image docker build -t tim .

  • Run GUI in your local machine: npm run dev

  • Docker-compose.yml

    • ruuter -> use commented out image to test the following:
      • Intent into Service
      • Intent example into Intent

Ready to go: docker-compose up -d

Use external components(Header/Main Navigation).

Currently, Header and Main Navigation used as external components, they are defined as dependency in package.json

 "@buerokrat-ria/header": "^0.0.1"
 "@buerokrat-ria/menu": "^0.0.1"
 "@buerokrat-ria/styles": "^0.0.1"

DMapper issue

  • To build DataMapper docker image on Apple silicon processors change its Dockerfile as following:
FROM node:19-alpine

RUN apk add --no-cache chromium
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

....

Open Search

  • To Initialize Open Search run ./deploy-opensearch.sh <URL> <AUTH> <Is Mock Allowed - Default false>
  • To Use Opensearch locally run ./deploy-opensearch.sh http://localhost:9200 admin:admin true

Testing

Bürokratt Play

Bürokratt Play acts the same as dev environment. Play gets updated after new code commits reach main branch, so the result can be faulty and/or down at any given time.

https://admin.play.buerokratt.ee/training

TIM

  • if you are running Locally then you need to curl the login request or run it on postman first to create and store the cookie in TIM and then on the browser create the cookie manually in the browser with name customJwtCookie and the value return from the curl request is as follows:
curl -X POST -H "Content-Type: application/json" -d '{
  "login": "EE30303039914",
  "password": ""
}' http://localhost:8080/login-user

training-module's People

Contributors

exirain avatar kasparminn avatar ceirowe avatar varmoh avatar raulaltmae avatar baha-a avatar kristjan259 avatar paulamerle avatar turnerrainer avatar markokull avatar trevorling avatar klvig avatar valteraro avatar 1ahmedyasser avatar minwasko avatar raydnoper avatar dependabot[bot] avatar sigritsiht avatar bartekpospiech avatar janyprus avatar sergeirudz avatar tarmoklaarria 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.