{"id":27363661,"url":"https://github.com/mouragabriel53/investapi","last_synced_at":"2025-04-13T04:35:07.324Z","repository":{"id":287452197,"uuid":"964766752","full_name":"MouraGabriel53/InvestAPI","owner":"MouraGabriel53","description":"API about investiments","archived":false,"fork":false,"pushed_at":"2025-04-11T19:50:39.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T20:30:39.457Z","etag":null,"topics":["api","backend","investments","javascript"],"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/MouraGabriel53.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,"zenodo":null}},"created_at":"2025-04-11T18:48:36.000Z","updated_at":"2025-04-11T19:50:42.000Z","dependencies_parsed_at":"2025-04-11T20:32:09.120Z","dependency_job_id":"10377659-5057-45b6-b2cb-83a653c814e1","html_url":"https://github.com/MouraGabriel53/InvestAPI","commit_stats":null,"previous_names":["mouragabriel53/investapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MouraGabriel53%2FInvestAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MouraGabriel53%2FInvestAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MouraGabriel53%2FInvestAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MouraGabriel53%2FInvestAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MouraGabriel53","download_url":"https://codeload.github.com/MouraGabriel53/InvestAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665156,"owners_count":21142118,"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","backend","investments","javascript"],"created_at":"2025-04-13T04:32:23.250Z","updated_at":"2025-04-13T04:35:07.318Z","avatar_url":"https://github.com/MouraGabriel53.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💰 InvestAPI\n\n\u003e An interactive API that provides information about key Brazilian economic rates (Selic, CDI, IPCA) and also offers smart investment advice with an AI assistant called **InvestAI**.\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-preview\"\u003e🔍 Preview\u003c/a\u003e •\n  \u003ca href=\"#-features\"\u003e🚀 Features\u003c/a\u003e •\n  \u003ca href=\"#-technologies-used\"\u003e🛠️ Tech Stack\u003c/a\u003e •\n  \u003ca href=\"#-installation\"\u003e📦 Installation\u003c/a\u003e •\n  \u003ca href=\"#-how-it-works\"\u003e📖 How It Works\u003c/a\u003e •\n  \u003ca href=\"#️-license\"\u003e⚖️ License\u003c/a\u003e •\n  \u003ca href=\"#-building\"\u003e🚧 Building\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n```bash\ngit clone https://github.com/MouraGabriel53/InvestAPI.git\n```\n```bash\nnpm run dev\n```\n\n## 🔍 Preview\n\n```CMD\n==================== Welcome | InvestAPI ====================\n\n💰 Select a rate to view the value 💰\n\n[0] - Selic\n[1] - CDI\n[2] - IPCA\n[3] - Ask to InvestAI\n[4] - Exit\n\n🔍 Type the number:\n-\u003e Answer: 3\n\n😁 Let's get started! What's your name?:\n-\u003e Answer: Gabriel\n\n🤓 Type what you want ask to InvestAI:\n-\u003e Answer: Where should I invest safely in 2025?\n\nInvestAI thinking... 🤔\n\n🤖 InvestAI answer: Hello Gabriel! I'm InvestAI. For safe investments in 2025, consider...\n\n```\n\n---\n\n## 🚀 Features\n\n✅ Real-time queries for major Brazilian economic rates:\n\n- **SELIC**\n- **CDI**\n- **IPCA**\n\n🤖 Ask InvestAI (powered by [Gemini API](https://ai.google.dev/)):\n\n- Responds to investment-related questions\n- Provides friendly and smart advice\n- Uses artificial intelligence to guide beginner investors\n\n🎛️ CLI interface with interactive terminal menus\n\n---\n\n## 🛠️ Technologies Used\n\n- **Node.js**\n- **JavaScript (ESModules)**\n- **Google GenAI SDK**\n- **dotenv**\n- **readline-sync**\n- **node-fetch**\n- **Express (backend API)**\n- **Git \u0026 GitHub**\n\n---\n\n## 📦 Installation\n\nInstall all required dependencies manually:\n\n```bash\nnpm install dotenv\nnpm install readline-sync\nnpm install @google/genai\nnpm install node-fetch\nnpm install express\n```\n\n## 📖 How It Works\n\nMake sure your package.json is configured like this:\n\n```\n{\n  \"name\": \"server\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Server Backend\",\n  \"main\": \"server.js\",\n  \"type\": \"module\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" \u0026\u0026 exit 1\",\n    \"start\": \"node server.js\",\n    \"dev\": \"node --watch server.js\"\n  },\n  \"author\": \"Your Name\",\n  \"license\": \"ISC\"\n}\n\n```\nThen, create a .env file in the root directory and add your Gemini API key:\n\n```\nGEMINI_API_KEY=your_real_api_key_here\n```\n\n## ⚖️ License\n[MIT LICENSE](LICENSE)\n\n## 🚧 Building\nCurrently, the project is under development and may receive frequent updates.\n\nMade with 💚 by Gabriel Moura","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouragabriel53%2Finvestapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmouragabriel53%2Finvestapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmouragabriel53%2Finvestapi/lists"}