-
From the
apps/modernization-ui
directory, executenpm install
-
Then execute to start the application. Default url is http://localhost:3000
npm run start
The UI code utilizes gql-typescript-generator and graphql-code-generator to auto generate GraphQL API requests.
Workflow:
- Update the API
.graphqls
schema files - Run the following command in the
modernization-ui
folder while the API is runningnpm run generate
- Use the newly generated methods to make API calls from typescript
Storybook is a component library that gives information on how to use the reusable react components like button,checkbox, table and so on. Run storybook locally to see what components are already available.
npm run storybook.
The no lint option is to ensure there aren't any lint errors as of now. This could be an effort going forward.
The frontend application can be packaged as a Docker container by executing the following command from the apps/moderniztion-ui
directory
docker build .