Skip to content

A simple Golang microservice to solve linear equations.

Notifications You must be signed in to change notification settings

zpv/go-eqn-solver-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eqn solver logo

Golang Equation Solver

A simple microservice to solve linear equations, built in Golang.
Explore go-eqn-solver docs »
Demo it now »


Setup

  1. Install docker
  2. Clone the repository and cd into the directory
  3. Build the image through docker build -t go-eqn-solver .
  4. Run using docker run -d -p 8080:8080 go-eqn-solver

Tests

  1. cd into the project directory
  2. Run tests using go test ./...

Usage

Webpage
  1. Browse to http://localhost:8080 to access the front-end equation solver

RESTFul API

HTTP Request

POST https://go-eqn-solver.azurewebsites.net/api/solve

JSON Request
Key Description Example
eqn A linear equation with one unknown x 2x=4
JSON Response

Given a valid request, here are the possible responses. The response is returned as JSON with a single result field.

Result Description
x={number} The equation has a single solution, number, rounded to 8 decimal places.
Infinite solutions The equation has infinite solutions
No solution The equation is unsolvable

About

A simple Golang microservice to solve linear equations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published