gocalculator

module
v0.0.0-...-2e3fe9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2025 License: MIT

README

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:

  1. Open up your CLI in your code editor
  2. Make sure to cd to the root directory of this project
  3. 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

Directories

Path Synopsis
cmd
gocalculator command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL