https://github.com/mouragabriel53/investapi
API about investiments
https://github.com/mouragabriel53/investapi
api backend investments javascript
Last synced: about 1 year ago
JSON representation
API about investiments
- Host: GitHub
- URL: https://github.com/mouragabriel53/investapi
- Owner: MouraGabriel53
- License: mit
- Created: 2025-04-11T18:48:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-11T19:50:39.000Z (about 1 year ago)
- Last Synced: 2025-04-11T20:30:39.457Z (about 1 year ago)
- Topics: api, backend, investments, javascript
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💰 InvestAPI
> 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**.
---
🔍 Preview •
🚀 Features •
🛠️ Tech Stack •
📦 Installation •
📖 How It Works •
⚖️ License •
🚧 Building
---
```bash
git clone https://github.com/MouraGabriel53/InvestAPI.git
```
```bash
npm run dev
```
## 🔍 Preview
```CMD
==================== Welcome | InvestAPI ====================
💰 Select a rate to view the value 💰
[0] - Selic
[1] - CDI
[2] - IPCA
[3] - Ask to InvestAI
[4] - Exit
🔍 Type the number:
-> Answer: 3
😁 Let's get started! What's your name?:
-> Answer: Gabriel
🤓 Type what you want ask to InvestAI:
-> Answer: Where should I invest safely in 2025?
InvestAI thinking... 🤔
🤖 InvestAI answer: Hello Gabriel! I'm InvestAI. For safe investments in 2025, consider...
```
---
## 🚀 Features
✅ Real-time queries for major Brazilian economic rates:
- **SELIC**
- **CDI**
- **IPCA**
🤖 Ask InvestAI (powered by [Gemini API](https://ai.google.dev/)):
- Responds to investment-related questions
- Provides friendly and smart advice
- Uses artificial intelligence to guide beginner investors
🎛️ CLI interface with interactive terminal menus
---
## 🛠️ Technologies Used
- **Node.js**
- **JavaScript (ESModules)**
- **Google GenAI SDK**
- **dotenv**
- **readline-sync**
- **node-fetch**
- **Express (backend API)**
- **Git & GitHub**
---
## 📦 Installation
Install all required dependencies manually:
```bash
npm install dotenv
npm install readline-sync
npm install @google/genai
npm install node-fetch
npm install express
```
## 📖 How It Works
Make sure your package.json is configured like this:
```
{
"name": "server",
"version": "1.0.0",
"description": "Server Backend",
"main": "server.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js",
"dev": "node --watch server.js"
},
"author": "Your Name",
"license": "ISC"
}
```
Then, create a .env file in the root directory and add your Gemini API key:
```
GEMINI_API_KEY=your_real_api_key_here
```
## ⚖️ License
[MIT LICENSE](LICENSE)
## 🚧 Building
Currently, the project is under development and may receive frequent updates.
Made with 💚 by Gabriel Moura