Skip to content

InvestGuard πŸ“Š A powerful Java Spring Boot & JavaScript-based investment risk analysis tool that empowers users to assess and manage investment risks

Notifications You must be signed in to change notification settings

negarprh/InvestGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

InvestGuard – Smart Investment Risk Analysis Tool

πŸ“Š Spring Boot (Java) | Portfolio Risk Calculation | Financial Technology

"Analyze investment risk and make informed financial decisions with real-time risk assessment."

InvestGuard Banner


πŸ“– About InvestGuard

InvestGuard is a Spring Boot-powered investment risk analysis tool that helps investors calculate portfolio volatility. Users enter stock details, and the system computes risk metrics like standard deviation to assess investment stability.

✨ Features

βœ… Add Investment Data – Enter stock tickers, investment amounts, and past returns.
βœ… Risk Calculation – Uses standard deviation to measure investment volatility.
βœ… Simple UI – Built using HTML, CSS, and JavaScript, served by Spring Boot.
βœ… REST API – Scalable backend for risk computation.


πŸ› οΈ Tech Stack

πŸš€ Backend (Spring Boot)

  • Java 17, Spring Boot (REST API & Static Frontend)
  • Maven (Dependency Management)
  • H2 Database (for fast and efficient storage)

πŸ’» Frontend (Served by Spring Boot)

  • HTML, CSS, JavaScript
  • Fetch API (for REST API calls)
  • Bootstrap UI for clean design

πŸ“Έ Screenshots

πŸ“Š Dashboard & Risk Analysis


πŸ› οΈ Installation & Setup

1️⃣ Clone the Repository

git clone https://github.com/negarprh/InvestGuard.git
cd InvestGuard

2️⃣ Run the Application (Spring Boot)

mvn clean install
mvn spring-boot:run

βœ… Backend & frontend will both run at:
πŸ“Œ http://localhost:8080

3️⃣ Open the Frontend

πŸ“Œ Go to:

http://localhost:8080/index.html

Since the frontend is inside Spring Boot's static/ folder, it's automatically served by the backend.


πŸ“‘ API Endpoints

βž• Add Investment

POST /api/add-stock?ticker=AAPL&amount=5000

βœ… Response

"Investment added: AAPL"

πŸ“Š Get Risk Analysis

GET /api/risk

βœ… Response

[
    {
        "Investment": "AAPL",
        "Risk (Std Dev)": 0.025
    },
    {
        "Investment": "MSFT",
        "Risk (Std Dev)": 0.020
    }
]

πŸ“ Future Improvements

πŸ”Ή Expand financial risk analysis metrics beyond standard deviation
πŸ”Ή Store investment data in MySQL/PostgreSQL
πŸ”Ή Add a Sharpe Ratio calculator for risk-adjusted returns
πŸ”Ή Implement user authentication for secure portfolio management


πŸ‘¨β€πŸ’» Author

Negar – Backend & Frontend Developer
πŸ”— GitHub: negarprh
πŸ“§ Email: [email protected]


πŸ“œ License

This project is MIT Licensed – Feel free to use and modify!

About

InvestGuard πŸ“Š A powerful Java Spring Boot & JavaScript-based investment risk analysis tool that empowers users to assess and manage investment risks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published