Git Product home page Git Product logo

openmrs-esm-form-builder's Introduction

OpenMRS ESM Form Builder App

OpenMRS CI

The Form Builder is a widget used to create OpenMRS form schemas. It enables users to both create new schemas and edit existing ones. It provides an embedded code editor that accepts JSON code. It also provides an interactive editor where users can construct a schema interactively without writing code.

Form Builder User Guide

Running this code

Under the hood, the Form Builder uses the OHRI form engine to render a visual representation of your schema. This visual preview gets progressively updated as you build your schema. When done building, you can save your schema to an OpenMRS server. You can also publish your schema to make it available to your frontend.

To set up environment variables for the project, follow these steps:

  1. Create a copy of the .env.example file by running the following command:
cp example.env .env
  1. Open the newly created .env file in the root of the project.

  2. Add the environment variables you need.

Note: These variables are currently only used for end-to-end tests.

Local development

yarn  # Installs dependencies
yarn start  # Launches a dev server

Once the dev server launches, log in and select a location. You will get redirected to the home page. Once there, you can either:

  • Click the App Switcher icon in the top right corner and then click Form Builder to launch the app.
  • Manually navigate to the /openmrs/spa/form-builder URL.

Running tests

Unit tests

To run unit tests, use:

yarn test

E2E tests

To run E2E tests, make sure the dev server is running by using:

yarn start

Then, in a separate terminal, run:

yarn test-e2e --headed

Please read our e2e docs for more information about E2E testing.

Building

yarn build

Running tests

yarn test 

openmrs-esm-form-builder's People

Contributors

denniskigen avatar kumuditha-udayanga avatar larslemos avatar anjula-sack avatar ibacher avatar donaldkibet avatar samuelmale avatar hadijahkyampeire avatar pirupius avatar gracepotma avatar piumal1999 avatar alexandermizgirev avatar florianrappl avatar jayasanka-sack avatar jexsie avatar vasharma05 avatar jwnasambu 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.