Navigation Menu

Skip to content

Bahmni/bahmni-frontend

Repository files navigation

Bahmni Frontend

This is a Lerna project containing bahmni applications. This package handles the following

Repository Development

Prerequisites

  • Node
  • yarn sh npm install yarn -g

Getting started

To install and setup the repository once cloned just use the following command

yarn setup

To start all applications (very resource intensive)

yarn start

Run test for all applications

yarn test

Run test all test across applications in parallel

yarn test:parallel

Run test for a given application

yarn test --scope bahmni-medication-app

Note: you can always go inside the application and just do yarn test

Running nginx container to expose MF's

docker build -t bahmni-frontend .
docker run -d -p 8090:80 -p 443:443 --name bahmni-frontend bahmni-frontend

├── ...
├── application             # micro frontend
│   ├── services            # api wrapper functions
│       ├── api_nameOrConcept.ts
|   |── components
│       ├── SomeresuseComponent.tsx
│   ├── ComponentName e.g. PrescirptionDialog
│       ├── ComponentName.tsx     # Parent component  PrescriptionDialog.tsx
│       ├── ChildComponent.tsx     # Child component
│       ├── index.tsx             # export the component
│       ├── component.test.tsx  # we could also use different file names e.g. drugs-search.test.tsx
│       ├── __tests__        #conditional if having snapshot / more test files
│       ├── types.d.ts      # We could also use concept names
│       ├── messsages.ts    # making localization more fluent
│   ├── AnotherComponent
│       ├── ...
│   └── ...                 # and so on...
│   ├── types
│       ├── someCommonTypes.d.ts
│   ├── locales
│       ├── en
│         ├── translation.json
│       ├── de
│         ├── translation.json
│       ├── ...
│   ├── context
│       ├── someContext.tsx   # Only when sharing state is required
│   ├── index.tsx             
|   ├── __tests__        #conditional if having snapshot / more test files
|   ├── application.test.tsx  
│   ├── babel, jest, package.json, tsconfig.json, webpack
└── ...

About

The bahmni@next frontend project which will build on OpenMRS 3.0 microfrontend stack. This is currently in very initial stages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published