Skip to content

📈 You get recessions, you have stock market declines. If you don’t understand that’s going to happen, then you’re not ready, you won’t do well in the markets. – By Peter Lynch

License

Notifications You must be signed in to change notification settings

toelapiut/Powered-Stock

Repository files navigation

Stocks By People

Maintenance GitHub license Ask Me Anything ! Open Source Love svg3

Getting Started

This project provides a stock market environment using Quandl api to IPO stock data for free.

Prerequisites

Just before you jump to the project get the environments right.

node v12.16.1 and above
package-manager(yarn or npm)

Installing

After creating the Prerequisites ready to clone the project

First, clone cinema project using http and ssh respectively

$ git clone git@github.com:toelapiut/Powered-Stock.git powered
$ git clone https://github.com/toelapiut/Powered-Stock.git powered

Then enter into the powered directory and install the packages using your favourite package-manager yarn or npm whichever you are comfortable in.

Running code locally:

For you to successfully run your code locally you'll need to have an .env file at the root directory with the following variables:

REACT_APP_BASE_URL=https://powered-market.herokuapp.com/api/v1/quandl/ #just for testing purposes 
SKIP_PREFLIGHT_CHECK=true
REACT_APP_VERSION=$npm_package_version
REACT_APP_NAME=$npm_package_name

After which you can run the command

$ yarn start
$ yarn test:watch
$ yarn test:coverage

or

$ npm run start
$ npm run test:watch
$ npm run test:coverage

Challenge

During development of the application, I encountered a couple of errors that I managed to fix. However, one error that that stood out for me was the CORS error from quandl API. After hours and hours of research I finally found out that the error was with Quandl API. Quandl doesnt allow Cross Origin resource sharing as stated here. The only way around that CORS error was to build a backend to wrap Quandl API and serve my front-end with that data. Here is the link to my Powered Backend

FAQ response from Quandle regarding CORS

NOTE: Keep that in mind

Built With:

  • Reactjs - React makes it painless to create interactive UIs
  • SWR -SWR is tool to help you optimise and simplify the logic of data fetching in your project
  • Tailwind CSS - A utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup.
  • VISX - visx a collection of expressive, low-level visualization primitives for React
  • Enzyme -Enzyme is a JavaScript Testing utility for React that makes it easier to test your React Components' output.
  • Yarn - Yarn is a package manager that doubles down as project manager.

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Apple Stock
  • Airbnb for VISX
  • Hat tip to anyone whose code was used

======= After which you can run the command

$ yarn start
$ yarn test:watch
$ yarn test:coverage

or

$ npm run start
$ npm run test:watch
$ npm run test:coverage

Built With:

  • Reactjs - React makes it painless to create interactive UIs
  • SWR -SWR is tool to help you optimise and simplify the logic of data fetching in your project
  • Tailwind CSS - A utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup.
  • VISX - visx a collection of expressive, low-level visualization primitives for React
  • Enzyme -Enzyme is a JavaScript Testing utility for React that makes it easier to test your React Components' output.
  • Yarn - Yarn is a package manager that doubles down as project manager.

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Apple Stock
  • Airbnb for VISX
  • Hat tip to anyone whose code was used

forthebadge made-with-javascript

About

📈 You get recessions, you have stock market declines. If you don’t understand that’s going to happen, then you’re not ready, you won’t do well in the markets. – By Peter Lynch

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published