GithubHelp home page GithubHelp logo

investment-tracker-react's Introduction

Investment Tracker

An investment tracking application that allows users to add their investments and monitor their portfolio. The app fetches stock data from the Alpha Vantage API and displays the user's total investments over time.

Project Structure

investment-tracker/
├─ frontend/ (React.js application)
│ ├─ public/
│ ├─ src/
│ │ ├─ components/
│ │ │ ├─ AddInvestment.js
│ │ │ ├─ Portfolio.js
│ │ │ ├─ TotalInvestmentChart.js
│ │ │ ├─ Header.js (assuming it's implemented)
│ │ │ └─ Footer.js (assuming it's implemented)
│ │ ├─ App.js
│ │ └─ index.js
│ ├─ package.json
│ └─ README.md (frontend-specific README, if needed)
└─ backend/ (Node.js/Express.js application)
├─ stockAPI.js
├─ app.js
├─ package.json
└─ README.md 

Setup and Installation

Frontend

  1. Navigate to the frontend folder in your terminal:
cd investment-tracker/frontend

2. Install the necessary dependencies:

npm install

3. Start the development server:

npm start

The frontend app will run on http://localhost:3000 by default.

## Backend

1. Navigate to the backend folder in your terminal:

`cd investment-tracker/backend`

2. Install the necessary dependencies:

`npm install`

3. Add your Alpha Vantage API key to the stockAPI.js file:

`const apiKey = 'your_api_key_here';`

Replace 'your_api_key_here' with your actual Alpha Vantage API key.

4. Start the development server:

npm run start

The backend server will run on http://localhost:3001 by default.

## Customization

To customize the application according to your requirements, you may need to modify the following:

1.Frontend components, located in frontend/src/components/.
2.Backend API routes and stock data fetching, located in backend/app.js and backend/stockAPI.js.
3.Database setup and connection, which should be implemented in the backend folder according to your choice of database and 
ORM.

Replace 'mongodb://localhost:27017/investment-tracker' with the connection string for your MongoDB instance.

investment-tracker-react's People

Contributors

pranshurastogi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.