This is the REST API for the "Digitalizacija" app. You can access the mobile app repository here. The project aims to help digitization of documents using OCR technology and make the process of managing documents easier.
- Install python 3.11 https://www.python.org/downloads/
- Clone the repository using
git clone https://github.com/Jura-Hostic-i-Film/Jura-Hostic-i-Film-api.git
- Install the required python packages using
pip install -r requirements.txt
- (Optional) Create a
.env
file in the root directory and add some or all of the following variables:SECRET_KEY=<your_secret_key> ACCESS_TOKEN_EXPIRE_HOURS=<your_access_token_expire_hours> DATABASE_URL=<your_database_url> AccountKey=<account_key> AccountName=<account_name> DefaultEndpointsProtocol=<default_endpoints_protocol> EndpointSuffix=<endpoint_suffix> vision_endpoint=<vision_endpoint> vision_key=<vision_key> image_path=<image_path>
- Run the server using
uvicorn app.main:app --reload
and the server will be available at the link provided in the terminal
The API is documented using Swagger and you can access the documentation at the /docs
endpoint.
The API is deployed on render.com and you can access it here.