A basic calculator application built with React and Vite, deployed using GitHub Pages.
- Perform basic arithmetic operations (addition, subtraction, multiplication, division).
- Clear the display (
Cbutton) and delete the last character (Backspacebutton). - Evaluate expressions using the
=button or pressingEnter. - Responsive design for various screen sizes.
- React ⚛️
- Vite 🚀
- JavaScript (ES6+) 📜
- HTML5 & CSS3 🎨
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/amanhex/Calculator.git cd Calculator -
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open your browser:
Visit
http://localhost:3000to view the app.
This project is deployed using GitHub Pages. To deploy the project:
-
Build the project:
npm run build
-
Deploy to GitHub Pages:
npm run deploy
-
Access the deployed app:
The app will be available at
https://your-username.github.io/repository-name.
Contributions are welcome! Here's how you can contribute to this project:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature). - Make changes and commit them (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature/your-feature). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.