Skip to content

Une calculatrice web simple développée avec Angular. Elle permet d'effectuer des opérations arithmétiques de base (addition, soustraction, multiplication, division) entre deux opérandes.

Notifications You must be signed in to change notification settings

lburdier/ng-simple-calc

Repository files navigation

Calculatrice

This project was generated using Angular CLI version 19.0.2.

Features

  • A functional calculator built with Angular
  • Supports basic operations: addition, subtraction, multiplication, and division
  • Modern dark mode design
  • Real-time input validation with error messages
  • Responsive UI

Development server

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

Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

ng generate component component-name

For a complete list of available schematics (such as components, directives, or pipes), run:

ng generate --help

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.

Running unit tests

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

ng test

Running end-to-end tests

For end-to-end (e2e) testing, run:

ng e2e

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

Deployment

To deploy the application to a hosting platform, you can use the production build:

ng build --prod

Upload the contents of the dist/ directory to your preferred hosting provider.

Prerequisites

Ensure you have the following installed before working on the project:

  • Node.js (v16 or later)
  • Angular CLI (v14 or later)
  • Git (optional, for version control)

To install Angular CLI globally:

npm install -g @angular/cli

Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.

Contribution Guidelines

If you'd like to contribute to the project:

  1. Fork the repository.
  2. Create a new branch with your feature or fix.
  3. Submit a pull request.

Please make sure your code follows the project's style guide and includes appropriate tests for any changes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Une calculatrice web simple développée avec Angular. Elle permet d'effectuer des opérations arithmétiques de base (addition, soustraction, multiplication, division) entre deux opérandes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published