$ cd stockin/frontend
$ npm install
$ yarn start
$ cd stockin/frontend
$ yarn
$ yarn test --coverage --watchAll=false
$ sudo apt-get update
$ sudo apt-get install mysql-server
$ sudo apt-get install libmysqlclient-dev
$ sudo mysql -u root -p
$ CREATE DATABASE stockinDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
$ create user 'swpp'@'%' identified by [password];
$ grant all on stockinDB.* to 'swpp'@'%';
$ flush privileges;
It must be modified with the [password] in the setting.py
$ cd stockin/backend
$ pip install -r requirements.txt
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py runserver
$ cd stockin/backend/core/crawlers
$ python StockCrawler.py initial
$ python StockCrawler.py past 1000
$ python StockCrawler.py realtime
$ pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
$ cd stockin/backend/core/ML
$ python ML.py
$ cd stockin/backend
$ pip install -r requirements.txt
$ python manage.py makemigrations
$ python manage.py migrate
$ coverage run --source='.' manage.py test && coverage report
$ coverage run --branch --source='.' manage.py test && coverage report