Skip to content

Hellhiem/ng-gog

Repository files navigation

GOG Game Store - Angular Playground

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.

How to run the project

To run this Angular project, follow these steps:

  1. Install the necessary dependencies by running:
   npm install
  1. Start mock server, run:
  npm start-server
  1. Start a local development server, run:
  ng serve

Once 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 Testing

E2E tests are set up using Cypress. To run the E2E tests, follow these steps:

  1. Run the application in development mode:
  ng serve
  1. Open a new terminal window and run the following command to start Cypress:
  npx cypress open
  1. Select E2E Testing from the Cypress dashboard, and then choose the base-app-flow tests.

Scripts

To execute unit tests with the Karma test runner, use the following command:

  ng test

To run Eslint and check for code quality issues, use:

  ng lint

To run TypeScript compiler checks, use:

  npm type-check

Run mock server to provide mock data for the application:

  npm start-server

Building

To 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.

Architecture

The project is structured into several modules, each responsible for different parts of the application.

The folder structure follows flat architecture for readability.

Structure

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published