Skip to content

alessandromazza98/intesa-tracker

Repository files navigation

Banca Intesa Bitcoin Tracker

A web application to track Bitcoin investment for Banca Intesa.

Project Structure

/intesa-tracker
  |-- /frontend - React frontend application
  |-- /backend  - Node.js/Express backend server

Features

  • Real-time Bitcoin price tracking in USD and EUR
  • Historical price charts
  • Investment performance tracking
  • Multiple API sources with fallback
  • Caching layer to handle rate limits

Running with Docker Compose

To run the application using Docker Compose, follow these steps:

  1. Build and start the containers:

    In the root of the project, run:

     docker compose up -d

    This will build the frontend and backend containers and start them.

  2. Endpoint:

    The URLs for the frontend and backend are detailed in the Development Setup section.

  3. Stop the application:

    To stop the containers run:

    docker compose stop
    

    If you want to stop and remove the containers and network run:

    docker compose down
    

Development Setup

  1. Install dependencies for all projects:
npm run install:all
  1. Start both frontend and backend in development mode:
npm run dev

Or run them separately:

  • Frontend only: npm run frontend
  • Backend only: npm run backend

The frontend will be available at http://localhost:5173 The backend API will be available at http://localhost:3456

Building for Production

npm run build

This will build both frontend and backend applications.

API Endpoints

Backend API

  • GET /health - Health check endpoint
  • GET /api/price/bitcoin - Get current Bitcoin price in USD and EUR
  • GET /api/historical/bitcoin?days=60 - Get historical price data

Contributing

Feel free to open issues and pull requests!

Author

Made with ❤️ by Alessandro Mazza

About

Banca Intesa SanPaolo Bitcoin Tracker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published