{"id":20489179,"url":"https://github.com/liviu-b/money_exchange_api","last_synced_at":"2025-03-05T17:16:59.197Z","repository":{"id":262809650,"uuid":"888424265","full_name":"liviu-b/money_exchange_api","owner":"liviu-b","description":"A simple and efficient REST API for currency exchange rates and conversions. This API allows users to fetch current exchange rates and convert amounts between different currencies.","archived":false,"fork":false,"pushed_at":"2024-12-10T06:23:07.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T05:13:06.655Z","etag":null,"topics":["api","javascript","postman-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liviu-b.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-14T11:27:26.000Z","updated_at":"2024-12-10T06:23:10.000Z","dependencies_parsed_at":"2024-11-14T12:41:34.239Z","dependency_job_id":null,"html_url":"https://github.com/liviu-b/money_exchange_api","commit_stats":null,"previous_names":["liviu-b/money_exchange_api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liviu-b%2Fmoney_exchange_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liviu-b%2Fmoney_exchange_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liviu-b%2Fmoney_exchange_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liviu-b%2Fmoney_exchange_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liviu-b","download_url":"https://codeload.github.com/liviu-b/money_exchange_api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242067714,"owners_count":20066751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","javascript","postman-api"],"created_at":"2024-11-15T17:11:36.793Z","updated_at":"2025-03-05T17:16:59.151Z","avatar_url":"https://github.com/liviu-b.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Money Exchange API\n\nA simple and efficient REST API for currency exchange rates and conversions. This API allows users to fetch current exchange rates and convert amounts between different currencies.\n\n## Features\n\n- Get latest exchange rates for any base currency\n- Convert amounts between different currencies\n- Simple REST API interface\n- Error handling and validation\n- Environment variables support\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- Node.js (v14.0.0 or higher)\n- npm (v6.0.0 or higher)\n- An API key from a currency exchange rate provider\n\n## Installation\n```\n1. Clone the repository:\nbash\ngit clone https://github.com/yourusername/money-exchange-api.git\ncd money-exchange-api\n\n\n2. Install dependencies:\n\nbash\nnpm install\n\n\n3. Create a `.env` file in the root directory and add your API key and server port:\n\nplaintext\nEXCHANGE_RATE_API_KEY=your_api_key_here\nPORT=3000\n\n\n4. Start the server:\n\nbash\nnode src/server.js\n```\n\n\n\n## Usage\n\n### Get Exchange Rates\n\n- **Endpoint**: `/api/rates/:base`\n- **Method**: GET\n- **Example**: `/api/rates/USD`\n\n### Convert Currency\n\n- **Endpoint**: `/api/convert`\n- **Method**: GET\n- **Query Parameters**:\n  - `from`: Currency code to convert from (e.g., USD)\n  - `to`: Currency code to convert to (e.g., EUR)\n  - `amount`: Amount to convert\n- **Example**: `/api/convert?from=USD\u0026to=EUR\u0026amount=100`\n\n## Error Handling\n\nThe API provides meaningful error messages for invalid requests or server errors. Ensure to check the response status and message for troubleshooting.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliviu-b%2Fmoney_exchange_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliviu-b%2Fmoney_exchange_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliviu-b%2Fmoney_exchange_api/lists"}