gocalculator
The goal of this project is to create a minimal http+json API for a calculator service.
Running the project
To run this webapp server:
- Open up your CLI in your code editor
- Make sure to cd to the root directory of this project
- Run
go run cmd/gocalculator/main.go on the terminal
Project goal and inspiration
On this github repo you can find the explanation of what the idea here is.
But basically the goal is to learn some basics on API developement in GO by building a backend web API calculator. This calculator is stateless, meaning that there is no data stored in a database or in memory.
This calculator supports basic operations:
- Addition
- Subtraction
- Multiplication
- Division
- Summation of all values in an array
The OpenAPI specification found in the api directory of this project describes the requirements for the API.
Credits
Dreams of Code Youtube video
Requirements and specs Github repo