Skip to content

sahilmtayade/receipt_fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

receipt_fastapi

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.

Requirements

  • Docker (Docker Desktop should work fine)
  • Git

Setup

  1. Clone the Repository
    Clone the repository to your local machine:

    git clone https://github.com/sahilmtayade/receipt_fastapi.git
    cd receipt_fastapi
  2. Build the Docker Image
    Build the Docker image using the following command:

    docker build -t fastapi-receipt-processor .
  3. 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.

Swagger UI

image image image

Redoc

image

About

Practice Project for fastAPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages