This project implements a web-based calculator application that performs basic arithmetic operations:
- (+) addition,
- (-) subtraction,
- (*) multiplication,
- (/) division.
The architecture separates the business logic from the presentation layer and ensures that the system is extendable for future enhancements.
The application adheres to OOP principles and is designed with future extensions in mind.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software:
- Docker
- Docker Compose
- Clone the repository:
$ git clone [email protected]:Hatter1337/CalcualatorAPI.git
- Navigate to the project directory:
$ cd CalculatorAPI
- Build and run the Docker containers:
$ docker-compose up --build
The web-based calculator can be accessed at http://localhost.
The REST API is accessible at http://127.0.0.1:8000.
Swagger: http://127.0.0.1:8000/docs.
Tests written with pytest can be run in Docker by executing the command:
$ docker-compose up --build backend-test
.