Skip to content

NMinhNguyen/stock-viewer-demo

Repository files navigation

stock-viewer-demo

Created with CodeSandbox

Configuration

Create an account on Finnhub

First, create an account on Finnhub.

After creating an account, make note of your API key (you can also use your sandbox API key).

Set up environment variables

Copy the env.local.example file in this directory to .env.local (which will be ignored by Git):

cp .env.local.example .env.local

Set the REACT_APP_FINNHUB_API_KEY variable in .env.local to the Finnhub API key.

Install and run:

npm install
npm start
# or
yarn
yarn start

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Releases

No releases published

Packages

No packages published