Microservice responsible for deal with services that try to identify you salary based on the location where each person is born.
First of all, one thing that not that important but make a difference is the installation and creation of virtual environment in you machine, using venv. That basically is a tool to create isolated Python environment.
For venv, basically what you need to do is:
- Install the virtualenv package
pip install virtualenv
- After that, create virtual environment
virtualenv ANY_NAME_THAT_YOU_WANT
- For finish just need to activate the virtual environment
source ANY_NAME_THAT_YOU_WANT/bin/activate
- If you want to deactivate the virtual environment
deactivate
Obs:. If you want read the official documentation can be found here.
It is recommended that start the service using Docker, it is more easily and faster. So, the first step is install docker, you can find all the information about that on the website.
After have docker on your machine, just need to run the follow code:
docker-compose up
After finish the service should be running. Any doubt you can send a message to Contributors or create a issue.
It is also possible to execute in other way, that is:
# First have to install all requirements running #
pip3 install -r requirements.txt
# After all requirements installed just need to run the uvicorn code #
uvicorn app.main:app --host 0.0.0.0 --reload --port 5000