GroceriesFridge / Calyx-Calculator

0 stars 1 forks source link

Welcome to the Calculator App Project!

We're excited to have you join our team. This document aims to provide you with all the necessary information to get you started on developing the Calculator app with currency conversion functionality. Our app is designed for Android, leveraging a Flask backend for currency conversion data.

Project Overview

The Calculator app is a minimalist Android application that allows users to perform basic arithmetic operations and convert currencies using live exchange rates. The project is open-sourced, inviting contributions from developers around the world.

Key Features:

Basic arithmetic operations (+, -, *, /, %) Currency conversion with 4 customizable pinned currency pairs A home screen widget for quick calculations and conversions

Technical Architecture

(Note: Consider implementing API keys or OAuth for production environments to secure access.)

Rate Limiting

Requests are limited to 60 per hour per IP address to prevent abuse and ensure service reliability.

Endpoints

Fetch Currency Conversion Rate

Error Handling

All API endpoints return standard HTTP status codes to indicate the success or failure of a request. In case of an error, a JSON object containing an error description will be provided. Rate Updates Currency conversion rates are fetched from the Open Exchange Rates API and cached for one hour to reduce the number of external API calls and improve response times. Security Considerations While the current version of the API does not require authentication.

This documentation provides a basic outline for the currency conversion API between the Flask backend and the Android app. It's designed to be expanded as new features are added or changes are made to the API.