GithubHelp home page GithubHelp logo

zhouyuhe / stock-tracker2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from steinalex/stock-tracker

0.0 0.0 0.0 929 KB

A React application that provides the ability to search for a company and see their respective stock prices and news

HTML 1.92% CSS 14.97% JavaScript 16.18% TypeScript 66.93%

stock-tracker2's Introduction

There are two elements required to run this project, the server and client.

Open a terminal and run npm i first to install all dependencies from package.json

Server

The server is a Node.js server, which uses the Express framework in order to use Socket.io

To start up the server, type nodemon server/server from the main project directory.

  • socket.io: a library that enables real-time, bidirectional and event-based communication between browser and server.
  • axios: an npm package to help fetch data
  • express: fast, unopinionated, minimalist web framework for Node.js

API

We used IEX Cloud to provide us stock data.

Env file

An env file is required to access the IEXCloud service, which is the API used to fetch stock data.

Ensure a .env file is created in the root project directory, with a TOKEN entry that's assigned to your unique API key. E.g. TOKEN=Tsk_d2f189.........9992a3ad744

Client

The client side is build with:

  • React
  • Redux

To start the client, type npm start from the main project directory. This will

  • Spin up a local server on a local port (usually 3000 unless specified)
  • Load the React application and render it into the browser

Running Tests

We use Jest for testing.

To run all tests, run npm run test

stock-tracker2's People

Contributors

zhouyuhe avatar steinalex avatar

stock-tracker2's Issues

Add readonly to state

.

It would be better to include this in the type definition:

export type StockState = {
  readonly selectedStock: StockProps | undefined;
};

Originally posted by @keithbloom in #17

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.