8000 GitHub - carson-evans/stock-price-checker: freeCodeCamp project
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

carson-evans/stock-price-checker

 
 

Repository files navigation

Stock Price Checker

Overview

This project is a stock price checker that allows users to get stock prices from external APIs and track likes for each stock. Users can query single stocks or compare two stocks, with the option to 'like' them, tracking the number of likes per stock.

Features

  • Get Stock Prices: Users can send a GET request to /api/stock-prices with a query parameter for a NASDAQ stock symbol to retrieve the current price.
  • Like Stocks: Users can also pass a like parameter to have their like added to the stock(s). The API ensures only 1 like per IP address is counted.
  • Compare Stocks: When querying two stocks, the API returns information about both stocks, including the relative likes (rel_likes) showing the difference between the number of likes on both stocks.

Technologies Used

  • Node.js
  • Express.js
  • MongoDB + Mongoose
  • Axios for external API requests

Setup and Installation

  1. Clone the Repository
    git clone https://github.com/your-github-username/stock-price-checker.git
  2. Navigate to the directory
    cd stock-price-checker
  3. Install Dependencies
    npm install
  4. Set up Environment Variables Create a .env file in the root directory and add the following variables:
    DB=<your_mongodb_connection_string>
    
  5. Start the Server
    npm start
    Or, for development:
    npm run dev

About

freeCodeCamp project

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.1%
  • HTML 10.6%
  • CSS 1.3%
0