Coder Social home page Coder Social logo

icrc-psousa / openmrs-esm-template-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openmrs/openmrs-esm-template-app

0.0 0.0 0.0 892 KB

A "Hello World" app you can use as a template for creating new microfrontends

License: Other

Shell 1.80% JavaScript 2.09% TypeScript 95.26% CSS 0.86%

openmrs-esm-template-app's Introduction

Node.js CI

OpenMRS ESM Template App

This repository provides a starting point for creating your own OpenMRS Microfrontend.

For more information, please see the OpenMRS Frontend Developer Documentation.

In particular, the Setup section can help you get started developing microfrontends in general. The Creating a microfrontend section provides information about how to use this repository to create your own microfrontend.

Adapting the code

  1. Start by finding and replacing all instances of "template" with the name of your microfrontend.
  2. Update index.ts as appropriate, at least changing the feature name and the page name and route.
  3. Rename the hello.* family of files to have the name of your first page.
  4. Delete the contents of the objects in config-schema. Start filling them back in once you have a clear idea what will need to be configured.
  5. Delete the greeter and patient-getter directories, and the contents of hello.tsx.
  6. Delete the contents of translations/en.json.
  7. Open up .github/workflows and adapt it to your needs. If you're writing a microfrontend that will be managed by the community, you might be able to just replace all instances of template with your microfrontend's name. However, if you're writing a microfrontend for a specific organization or implementation, you will probably need to configure GitHub Actions differently.
  8. Delete the contents of this README and write a short explanation of what you intend to build. Links to planning or design documents can be very helpful.

At this point, you should be able to write your first page as a React application.

Integrating it into your application

Please see Creating a Microfrontend.

openmrs-esm-template-app's People

Contributors

brandones avatar florianrappl 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.