Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Latest commit

 

History

History
58 lines (42 loc) · 1.34 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.34 KB

Backend

  • Django
  • Python
  • sqlite

dj

Prerequisites

MacOS:apple:, Ubuntu Environment

  • Python >= 3.1.3 .

Install

  1. Install Django
    $ pip install Django
    
  2. Install modules in Django (cors, rest_framework, allauth)
    $ pip install django-cors-headers djangorestframework django-allauth
    
  3. Install extra modules
    $ pip install finance-datareader bs4 newsapi-python
    $ pip install newsapi-python
    

Execute

  1. Open your terminal and go to the directory of the AutoTA file on your terminal.

    $ cd Backend/autoTA
    
  2. Start server

    $ python manage.py runserver
    

Then you'll see this on your terminal.

스크린샷 2021-02-15 오후 4 34 54

  1. 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/