The purpose of this project is to experiment with and learn the fastapi framework. This includes pydantic validation, lifecycle, and pytest cases. This is a FastAPI application that processes receipts, calculates points based on defined rules, and returns the points for a given receipt ID.
- Docker (Docker Desktop should work fine)
- Git
-
Clone the Repository
Clone the repository to your local machine:git clone https://github.com/sahilmtayade/receipt_fastapi.git cd receipt_fastapi
-
Build the Docker Image
Build the Docker image using the following command:docker build -t fastapi-receipt-processor .
-
Run the Application
Run the application using Docker:docker run -p 8000:8000 fastapi-receipt-processor
This will start the FastAPI application on port 8000. You can access the FastAPI documentation and test the endpoints at http://localhost:8000/docs. To change ports, change
-p <port>:8000
with your desired port.