Skip to content

rk1165/evaluator

Repository files navigation

Simple BODMAS Mathematical Expression Evaluator Service

  • This is a simple SpringBoot repo which contains REST endpoints for following operations:
    • Given a mathematical expression, evaluate it and return the result.
    • Given a user_id, return the most frequent operator used by that user.
    • Given a user_id, return the counts of all the operators used by that user.
  • It uses H2 as an in-memory database.
  • awsInfra is used to provision infra on AWS to deploy this project and run it in AWS FARGATE.
  • GitHub Actions is used for deploying it to AWS using Docker.

How to run and test it locally?

  • Use bash run.sh command to boot up the application.
  • Use bash test.sh to run curl commands against the various REST endpoints.
  • Design and development is mentioned in the file design_and_dev.md
  • There is also an html file calculate.html which can be used to test the API from a browser.
67acbda3-974a-4ff5-a219-b24bfc370306.mp4

About

This repository contains a simple bodmas mathematical evaluator service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published