StockBot is a web application build from several micro-services that delivers a sentiment machine learning prediction over the web- application.
Make sure that your development environment meet the following requirements: You need to have installed:
- Python v3.9.*
- Node.js v14.16.*
- npm v7.12.*
- webpack@4.44.2
Make sure that PORT 3000 and PORT 8000 are free to use.
Make sure that you're in the right directory when executing the commands.
Price Predictions using Machine Learning> cd .\backend\
Changes directory to backed folderpipenv install
- install dependencies.pipenv shell
Starts the python virtual environmentpython manage.py runserver
Starts API's development server- Leave it running and open new terminal to start front-end interface.
Stock Price Predictions using Machine Learning> cd .\frontend\
npm install
- Installs all needed dependenciesnpm start
- Starts the react.js development server
Open http://localhost:3000 to view it in the browser.
- After successful set up go to the stock prediction page.
- Input the titles that you want to check against the model.
- Press the submit button to see the prediction.
I would like to acknowledge my supervisor Dr Renxi Qiu and Dr Vitaly Schetinin for great learning experience and giving me a confidence to tackle ambitious projects.
*The API runs at at http://127.0.0.1:8000/.
The issues with webpack can be solved by updating the webpack globally at node_modules.