This project was generated using Angular CLI version 19.2.13.
Before you start be sure to install the Angular CLI globally from the link above.
To run this Angular project, follow these steps:
- Install the necessary dependencies by running:
npm install- Start mock server, run:
npm start-server- Start a local development server, run:
ng serveOnce the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.
E2E tests are set up using Cypress. To run the E2E tests, follow these steps:
- Run the application in development mode:
ng serve- Open a new terminal window and run the following command to start Cypress:
npx cypress open- Select
E2E Testingfrom the Cypress dashboard, and then choose thebase-app-flowtests.
To execute unit tests with the Karma test runner, use the following command:
ng testTo run Eslint and check for code quality issues, use:
ng lintTo run TypeScript compiler checks, use:
npm type-checkRun mock server to provide mock data for the application:
npm start-serverTo build the project run:
ng build This will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.
The project is structured into several modules, each responsible for different parts of the application.
The folder structure follows flat architecture for readability.
components: Contains reusable components used across the application.pages: Contains the main pages of the application.services: Contains services for handling data and business logic.types: Contains TypeScript interfaces and types used throughout the application.mocks: Contains mock data for testing and development purposes.assets: Contains static assets like images and i18n internationalization files.root/cypress: Contains Cypress end-to-end tests.root/husky: Contains Husky hooks for pre-commit and pre-push checks.