Skip to content

Latest commit

 

History

History
73 lines (57 loc) · 2.35 KB

README.md

File metadata and controls

73 lines (57 loc) · 2.35 KB

Microservice that calculates tax data in México

What are tax data?

Tax data is the information that the Tax Administration Service has about you, such as identification data, tax address, branches and establishments of your business, your tax characteristics and information complementary to these.

Technology Used

  • Docker - Main tools to build this project
  • FastAPI - Web framework for building APIs with Python
  • Uvicorn- Is an ASGI web server implementation for Python
  • Python - Programming language widely used in web applications, software development, data science and machine learning (ML)
  • Pyfiscal - Library that calculates tax data

Getting Started with Docker

If you want to install the dependencies and work using Docker, you can simply follow this steps.

Clone the project repository

git clone https://github.com/roottsantiago/docker-tax-data-mx.git
cd docker-tax-data-mx

Usage

There are several ways to use the project because there are those using docker-compose.yml and Dockerfile. Here's how to use it:

This is for the install part with docker-compose

docker-compose up -d

To stop service from docker-compose

docker-compose down

Section to install with Dockerfile

$ docker build -t docker-tax-data-mx .

To run the Docker image, run the following:

$ docker run -it -p 8000:8000 docker-tax-data-mx

To stop the Docker container:

$ docker ps
$ docker stop <container-id>

Run with Docker Hub

Download precreated image

You can also just download the existing image from DockerHub.

docker pull roottsantiago/tax_data_mx

Run the container

Create a container from the image.

$ docker run --name my-container -d -p 8000:8000 roottsantiago/tax_data_mx

Now visit http://localhost:8000

LICENSE

Distributed under the MIT License. See LICENSE for more information