Skip to content

Latest commit

 

History

History
73 lines (53 loc) · 2.02 KB

README.md

File metadata and controls

73 lines (53 loc) · 2.02 KB

Service Dev setup

After cloning the repository, follow the next steps to have the project's BE up and running:

Guide

Description

Its Flask project implement Algorithms like Ackermann Fibonacci Factorial

Most of the Algorithms implemented Dynamic programming Iterative and recursive 

Include unit testing 

Include Sentry for montering   

System dependencies

Execute code

This might take long time to install sentry onpremise
Skip creating user during running sentry container for the first time

sudo bash install.sh
After executing this command actions take place
  • sentry containers will be up
  • backend container will be up
  • move sentry-postgres dump to the docker volumes
  • export machine wlp1s0 to environment variable MACHINE_IP

Execute Tests

docker exec -it backend  python manage.py test

Sentry

  • URL: localhost:9000
  • User credentials
    Account: root@localhost
    password: 123456
    

Curl Request

  • Factorial:
     curl -X GET -H "Content-type: application/json" -H "Accept:application/json" -d '{"number":1000}' "http://localhost:5000/factorial"
    
  • Fibonacci:
     curl -X GET -H "Content-type: application/json" -H "Accept:application/json" -d '{"number":1000}' "http://localhost:5000/fibonacci"
    
  • Ackermann:
     curl -X GET -H "Content-type: application/json" -H "Accept:application/json" -d '{"row":8,"column":8}' "http://localhost:5000/ackermann"