Skip to content

mohit-gogitter/investor-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Investor Dashboard Mini project by Mohit Singh

Instructions

InvestorDashboard App

InvestorDashboard is a full-stack application designed to manage investor information and commitments, built using a microservices architecture. This app uses a PostgreSQL database for data storage, .NET Core Web API for backend services, and React with Tailwind CSS for the frontend.

Table of Contents

  1. Prerequisites
  2. Project Structure
  3. Database Setup
  4. Backend Services Setup
  5. Front End Setup
  6. Running the Application
  7. Application Screenshots

1. Prerequisites

Ensure you have following installed on your system:

2. Project Strucutre

This code base contains two main folder viz. Prequin.Microservices/ (contains all the backend microservices) and a Client/ folder (contains the front end application investor-dashboard).
Inside the Preqin.Micrservices folder, there are 2 indepenedent services build using .NET Core Web API i.e. InvsestorService and CommitmentService.

3. Database Setup

  1. Inititalize Postgres SQL Database

    • Open Postgres using PgAdmin tool and create a databse with name 'prequin'
    • Execute the provided SQL queries to set up the necessary tables and insert data
      Note: A detailed document with table creation and insert queries can be found here.
      The DB Structure should look like this:
      db_image
  2. Update the connection string in the appsettings.json file for both services (InvestorService and CommitmentService) to connect to your PostgreSQL instance:
    connection_string_image

4. Backend Services Setup

The backend consists of two microservices: InvestorService and CommitmentService.
Steps to Build and Run the Services:

  • Clone the Repository:
    git clone https://github.com/mohit-gogitter/prequin-assessment-mohit.git

    Once cloning is completed, navaigate to Prequin.Microservices/ folder -
    cd Prequin.Microservices

  • Navigate to each Service Directory and Restore Packages and build:

    • For InvestorService:
      cd InvestorService
      dotnet restore
      dotnet build
    • For CommitmentService:
      cd CommitmentService
      dotnet restore
      dotnet build
  • Run the Services: Run each service on separate terminals

    • In Investor Service
      dotnet run
    • In CommitmentService
      dotnet run
      Both services should start successfully on their configured ports, accessible via endpoints defined in each service.

5. Front End Setup

  • Navigate to fontend directory from root:
    cd Client/investor-dashboard
  • Install Dependencies:
    npm install
  • Start the Application:
    npm start
    The frontend will start on http://localhost:3000.

6. Running the Application

  • Start PostgreSQL Database.
  • Start InvestorService and CommitmentService (see Backend Services Setup).
  • Start the Frontend Application (see Frontend Setup). Now you should have a fully functional InvestorDashboard application running locally. Open your browser and go to http://localhost:3000 to interact with the application.

7. Application Screenshots

  • Investors View
    investor_view
  • Commitments View
    commitment_view

Additional Notes

API Documentation for the backend services is available using Swagger at:
InvestorService: here CommitmentService: here

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published