This web service is provided to calculate Ackermann function,The nth sentence of the Fibonacci sequence and Factorial function.
Git Flow Feature branch is used to manage Git and Travis-ci is used for the continuous integration of the project.
The Travis-ci is connected to Git's Ropositories and after every push,project starts to run on travis-ci's own servers according to configurations in .travis.yml
and all its unit tests are checked automatically that you can some oof project build in image below:
also,Git work flow is used to manage branches.
three part of our branch is :
- main
- develop
- features
git clone https://github.com/MohammadReza-Jafari/narvan.git
cd narvan
python -m venv virtual
- to activate on windows machines use the following command:
.\virtual\Scripte\activate
- and for other operation systems see Python Documentation
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
on narvan api doc you can visit api documentation and see how to use every services.
to test this api you can see narvan api doc that created by swagger and test services or go to any of following urls
and make post requests with specified value and for making documentation i used swagger that tou can see below:
-
- method=post | reques-body = { “n”: An Integer value}
-
- method=post | reques-body = { “n”: An Integer value}
-
- method=post reques-body ={“m”: An Integer value, “n”: An Integer value}