TemperaturePipe is a lightweight Angular application that demonstrates the use of custom pipes for data transformation. It focuses on showcasing reusable and modular components for sorting and temperature conversion.
The project adheres to Angular’s standard structure, emphasizing simplicity and reusability.
- src/app/: Main application directory containing the root component and custom pipes.
- app.component.*: Root component managing the application layout and logic.
- sort.pipe.ts: A custom pipe for sorting data arrays.
- temperature.pipe.ts: A custom pipe for converting temperature values between Celsius, Fahrenheit, and other units.
- src/styles.css: Global styles for the application.
Custom Pipes:
- Sort Pipe:
- Sorts arrays based on specified criteria.
- Fully customizable for ascending or descending order.
- Temperature Pipe:
- Converts temperature values between different units (e.g., Celsius to Fahrenheit).
- Ensures accurate and user-friendly data representation.
-
Clone the Repository:
git clone https://github.com/FilonenkoDima/TemperaturePipe.git cd TemperaturePipe
-
Install Dependencies: Ensure you have Node.js and Angular CLI installed, then run:
npm install
-
Run the Application:
ng serve
The app will be accessible at
http://localhost:4200/
. -
Build for Production:
ng build --prod
- Frontend: Angular
- Styling: CSS
- Build Tools: Angular CLI
- Version Control: GitHub
- Fork the repository.
- Create a new feature branch:
git checkout -b feature/your-feature-name
- Commit your changes and push the branch:
git push origin feature/your-feature-name
- Submit a pull request for review.