This project contains a Python project for convert currencies. This version uses Django and Django REST Framework for API architecture and BeautifulSoup to scraping the Google Finance website in search of currencies quotes.
- Linux Ubuntu 22.04.1 LTS;
- Docker 20.10.23+;
- Python 3.10.6+;
- Pip 22.0.2+;
This version doesn't need previous configuration, you just need build the docker image and run a container. To build the docker image, type the following command on the same folder as Dockerfile:
docker build -t currapi-docker .After this, to start the image inside a container, type the command:
docker run -p 8000:8000 --name api-server currapi-dockerThe project will be running on http://127.0.0.1:8000 .
Obs.: Depending of your docker installation and configuration, all commands will need the sudo flag.
Go to Swagger or Redoc documentation while the project running for more infos and examples of API usage.