This is a simple calculator created in pure HTML/CSS/Javascript.
- Supports keyboard inputs ("c"=clear, "backspace"=back, etc)
- Animates when a user hovers or presses a button
- Handles exceptions gracefully
- Supports large numbers
- Dark mode
- Create a t2.micro instance
- Run the following command: sudo apt update && sudo apt install docker.io
- Run the command: sudo nano dockerfile and write
FROM nginx
RUN apt update
RUN apt install git -y
RUN rm -rf /usr/share/nginx/html
RUN git clone https://github.com/sauravinside/calculator-webapp.git /usr/share/nginx/html - After this run: sudo docker build . -t calculator : sudo docker run -itd -p 80:80 calculator
- Now check the publiicIPV4:80