- Django
- Python
- sqlite
- Python >= 3.1.3 .
- Install Django
$ pip install Django
- Install modules in Django
(cors, rest_framework, allauth)
$ pip install django-cors-headers djangorestframework django-allauth
- Install extra modules
$ pip install finance-datareader bs4 newsapi-python $ pip install newsapi-python
-
Open your terminal and go to the directory of the AutoTA file on your terminal.
$ cd Backend/autoTA
-
Start server
$ python manage.py runserver
Then you'll see this on your terminal.
- As what the terminal said, you can debug the server at http://127.0.0.1:8000/ local server. Now You can run the server ! If you want to open the specific api then jump into these urls.
- back/stocks/ [name='index']
- back/stocks/ search/str:keyword
- back/stocks/ search/str:stock_code
- back/stocks/ graph/
- back/news/