Skip to content

openvalidation/openvalidation-ide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openVALIDATION-IDE

Project logo

Demo IDE | Documentation

integrated development environment for openVALIDATION

contents

introduction

openVALIDATION-IDE is a web-based development environment for users who are not familiar with coding. It enables Domain Experts, Business Analysts or Requirement Engineers to write complex validation rules themselves using natural language. These validation rules will be translated into code using openVALIDATION.

Usually, an IDE is a very technical tool for coding. The openVALIDATION-IDE is an approach to hide all the technical features of an IDE and gives the user just the necessary tools for writing validation rules. It includes features like syntax highlighting, auto-completion and linting while making it look like a simple text-editor.

The major components of the tech stack for the openVALIDATION-IDE consists of the Angular framework and the Monaco Editor for its UI, while backend functionality is powered by Spring Boot.

architecture overview

The following overview describes the technology used as well as the way the components communicate with each other.

architecture overview

run with docker

You can easily run the openVALIDATION-IDE on your local machine with docker, following these steps:

  1. Install docker if not already installed
  2. Clone this repository with git clone https://github.com/openvalidation/openvalidation-ide
  3. Navigate into the previously cloned repository with cd openvalidation-ide
  4. Run docker-compose up
  5. Open localhost in your browser

If you don't want to download and compile the sources however, you can also just pull the latest images directly from dockerhub using this alternative docker-compose file:

  1. Install docker if not already installed
  2. Download openvalidation-ide-dockerhub.yml to your machine
  3. Run docker-compose -f openvalidation-ide-dockerhub.yml up
  4. Open localhost in your browser

run local

prerequisites

To run the project locally, the following tools must be installed:

commands

  1. Clone this repository with git clone https://github.com/openvalidation/openvalidation-ide
  2. Navigate into the previously cloned repository with cd openvalidation-ide
  3. Run the frontend:
    1. Navigate into frontend directory with cd ./frontend/
    2. Install node dependencies:
      npm install
      
    3. Start local angular frontend:
      ng serve
      
  4. Run the backend:
    1. Navigate into backend directory with cd ./backend/
    2. Start backend with in-memory h2 database
      mvn clean spring-boot:run -Dspring-boot.run.arguments=--cors-headers=http://localhost:4200
      
  5. Open localhost with your local angular port (default: 4200) in your browser

environmental variables

These can be set in the docker-compose file or when the container is started.

frontend

Variable Default Value Description
API_BASE_PATH http://127.0.0.1:8080 URL of the IDE Backend
LANGUAGE_SERVER_URL ws://127.0.0.1:3010 URL of the language-server

backend

Variable Default Value Description
SPRING_PROFILES_ACTIVE dev Active Spring Profile
OPENVALIDATION_IDE_DB postgres Database technology
OPENVALIDATION_IDE_DB_NAME Database name
OPENVALIDATION_IDE_DB_USER Database username
OPENVALIDATION_IDE_DB_PW Database password
CORS_HEADERS Allowed CORS Headers
RESET_SECRET Secret for obfuscating /reset

About

integrated development environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published