Skip to content

cayeborreo/angular-tip-calculator

Repository files navigation

Frontend Mentor - Tip calculator app solution

Hi! 👋 This is a solution (I submitted it here) to the Tip calculator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

🤔 Quick note: Why this project?

I'm currently looking for work opportunities, and I see that most of the roles for web dev (if not React, which I'm already familiar with) actually use Angular! So I wanted to try my hand at it.

At the same time, I'm expecting frontend challenges and tests soon, so I Googled that—"frontend challenges"—and came across Frontend Mentor. It's the perfect place to look for project starters. Sure, I finished the Angular sample cart app, but getting my hands dirty on this calculator app really made me review Angular concepts and how-to's.

It is by no means perfect! That's why this repo is up here—for a show-and-tell, and of course, getting feedback on how I can improve 🤗

📋 Table of contents

ℹ️ Overview

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Calculate the correct tip and total cost of the bill per person

Screenshot

Desktop

tip-calculator-screenshot-desktop

Mobile

tip-calculator-screenshot-mobile

Links

👩🏽‍💻 My process

Built with

What I learned

Use this section to recap over some of your major learnings while working through this project. Writing these out and providing code samples of areas you want to highlight is a great way to reinforce your own knowledge.

To see how you can add code snippets, see below:

<h1>Some HTML code I'm proud of</h1>
.proud-of-this-css {
  color: papayawhip;
}
const proudOfThisFunc = () => {
  console.log("🎉");
};

Continued development

Use this section to outline areas that you want to continue focusing on in future projects. These could be concepts you're still not completely comfortable with or techniques you found useful that you want to refine and perfect.

Useful resources

  • Example resource 1 - This helped me for XYZ reason. I really liked this pattern and will use it going forward.
  • Example resource 2 - This is an amazing article which helped me finally understand XYZ. I'd recommend it to anyone still learning this concept.

Note: Delete this note and replace the list above with resources that helped you during the challenge. These could come in handy for anyone viewing your solution or for yourself when you look back on this project in the future.

⚡️ Running the project

This project was generated with Angular CLI version 12.1.1.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

🥕 Author

✨ Acknowledgments

This is where you can give a hat tip to anyone who helped you out on this project. Perhaps you worked in a team or got some inspiration from someone else's solution. This is the perfect place to give them some credit.

About

This is an Angular solution to the Tip calculator app challenge on Frontend Mentor. Let me know how I fared!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published