This is a monorepo based project architecture using Nx.
For getting some mock 10 digit valid credit card no, please use this link
Cards:
53046005207191299275
yarn installnpm start
- Frontend App
- Backend API
-
ui : For UI React Components & jest tests
- Form
- Input
- Status Box
- Table
-
common : Common Utilities & jest tests
- CreditCardValidator : Used in both Frontend and API
- HTTP : Wrapper around
fetch API - Types
-
model : Models, interfaces
Run npm start for dev servers.
Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run npm run storybook for running the storybook server.
Navigate to http://localhost:4400/
Run npm run build to build the project.
The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Run npm run test to execute all unit tests via Jest.
To run unit tests on individual modules
npm run test:modelnpm run test:uinpm run test:frontendnpm run test:backend-api
Run npm run e2e to execute the end-to-end tests via Cypress.
For monorepo based Library starter using Lerna, please refer the other boilerplate Lib Boilerplate
