Skip to content

Repository files navigation

My Examp App

A small Angular demo app used for local development and experimentation.

Setup and run

  • Install dependencies:

    npm install

  • Start the development server:

    npm run start

These commands expect Node.js and npm to be installed. The start script uses the workspace scripts defined in package.json (Angular CLI ng serve).

Assumptions and known limitations

  • Assumptions:

    • Node.js (v14+) and npm are available.
    • You're working from the repository root where package.json and angular.json live.
    • The project uses Angular CLI for development and build tasks.
  • Known limitations:

    • This README is intentionally brief. It does not cover CI/CD, production deployment, or environment-specific configuration.
    • No external backend or database setup is documented here. The app relies on local services (in-memory or localStorage) for persistence.
    • Browser support and polyfills follow the default Angular configuration and are not listed here.

State and structure (how state is organized and why)

  • Services live under src/app/core/ and encapsulate application state and logic:

    • courses.service.ts — holds course-related business logic and exposes methods to read/update course data. Placing logic in a service keeps components thin and makes the behavior reusable and testable.
    • local-storage.service.ts — a small wrapper around the browser localStorage API used for lightweight persistence (caching, preferences). Abstracting storage access centralizes serialization and error handling.
    • models.ts — shared TypeScript interfaces/types used across the app to keep data shapes consistent.
  • Components (under src/app/components/) are presentation-focused and obtain data from services via dependency injection or inputs. This pattern (service-driven state + presentational components) improves maintainability and makes it easy to scale to a global state manager (NgRx, etc.) later if needed.

If you want, I can expand this README with testing instructions, contribution guidelines, or add scripts for production builds.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages