@sasindi/samplecollection
v1.0.29
Published
samplecollection frontend module for O3
Readme
@openmrs/esm-samplecollection
samplecollection frontend module for O3
Quick start
```bash yarn install yarn start ```
Once started, your module will be available at: http://localhost:8080/openmrs/spa/samplecollection
What's included
- ✅ OpenMRS 3.0 microfrontend setup
- ✅ Carbon Design System integration
- ✅ Internationalization (i18n) ready
- ✅ TypeScript configuration
- ✅ Jest testing setup
- ✅ ESLint + Prettier
Learn more
OpenMRS O3 resources
- Getting Started - Start here for O3 development
- Creating a Frontend Module - Step-by-step guide
- Framework Concepts - Core O3 patterns
Development guide
- Extension System - Adding widgets and extensions
- State Management - Managing app state
- Carbon and Styling - UI components and styling
- Testing - Testing your module
Community
- OpenMRS Talk - Community forum for questions
- OpenMRS Wiki - Join the developer community
Common tasks
Adding new routes
See the Routing Guide for details.
Development commands
```bash
Start development server
yarn start
Build for production
yarn build
Run tests
yarn test
Watch tests
yarn test:watch
Extract translations
yarn extract-translations
Type checking
yarn typescript
Linting
yarn lint
Format code
yarn prettier ```
Installation
```bash yarn add @openmrs/esm-samplecollection ```
Usage
[Add usage instructions here]
Building
```bash yarn build ```
Testing
```bash yarn test ```
Troubleshooting
openmrs develop crashes with Cannot read properties of undefined (reading 'devServer')
Ensure your build config exports the default OpenMRS config:
For rspack (default): ```js const config = require('@openmrs/rspack-config');
module.exports = config.default ?? config; ```
For webpack: ```js const config = require('@openmrs/webpack-config');
module.exports = config.default ?? config; ```
Yarn peer dependency warnings (dayjs, i18next, single-spa, swr, react-is, sass)
If you see missing peer dependency warnings, add the missing deps and align react-i18next to 11.x in your package.json, then re-run yarn install.
