Skip to content

Latest commit

 

History

History
186 lines (128 loc) · 5.17 KB

README.md

File metadata and controls

186 lines (128 loc) · 5.17 KB

Finstant

Your source for financial documents, untainted by fear-mongering or fake news


Table of Contents
  1. About The Project
  2. Getting Started
  3. License
  4. Acknowledgments

About The Project

Screenshot of Finstant

Finstant is a full-stack web application designed to empower investors by providing streamlined access to essential financial documents, without the clutter of short-term data. This platform not only facilitates efficient financial research but also allows users to manage and review their stock portfolios interactively.

(back to top)

Built With

(back to top)

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

Cloning the Repository

Start by cloning the repository to your local machine:

git clone https://github.com/stolomeo/finstant.git
cd finstant

Setting Up the Backend

  1. Setup User Secrets: This project uses user secrets to store sensitive data such as the database connection string, JWT signing key, and the Financial Modeling Prep API key

    • Navigate to the api directory:

      cd api
    • Initialize user secrets:

      dotnet user-secrets init
    • Set the required secrets:

      dotnet user-secrets set "DbPassword" "your_password"
      dotnet user-secrets set "JWT:SigningKey" "your_jwt_signing_key"
      dotnet user-secrets set "FMPKey" "your_fmp_api_key"
    • In your api/appsettings.json, update the ConnectionStrings.DefaultConnection to connect to your SQL server:

      "ConnectionStrings": {
        "DefaultConnection": "Server=localhost;Database=your_database;User Id=your_user;"
      }
  2. Database Setup:

    • Update your database using Entity Framework migrations (ensure you have EF tool installed):

      dotnet ef database update
  3. Start the Server:

    • Run the server locally:

      dotnet watch run

Setting Up the Frontend

  1. Install Dependencies:

    • Navigate to the client directory:

      cd client
    • Install packages:

      npm install
  2. Setup Environment Variables:

    • Create a .env file

      touch .env
    • Add your FMP API key like so

      VITE_FINANCIAL_MODELING_PREP_API_KEY=your_api_key
  3. Start the App:

    • Run the server locally:

      npm run dev

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Acknowledgments

(back to top)