This is an example application demonstrating how to use the solodb-react-components library.
-
Build the library first:
cd .. yarn install yarn build -
Install example dependencies:
yarn install
-
Run the development server:
yarn dev
The example app will start at http://localhost:3000 and will consume the components from the parent library using a local link.
src/main.tsx- Application entry point with React Query and routing setupsrc/routes/pageRoutes.tsx- All application routes using library componentsindex.html- HTML template with necessary CSS imports
This example mirrors the original application structure but imports components from the library:
import {
AuthProvider,
SetupUpdateEquipment,
EquipmentDashboard,
MonitorCard,
// ... other components
} from "solodb-react-components";When developing components in the library:
- Make changes to the library source code (
../src) - Rebuild the library:
cd .. && yarn build - The example app will automatically reload with the updated components
For faster development, you can run both in watch mode (if configured).