Skip to content

twitterのツイート情報から、ネガティブ or ポジティブなツイートのみを取得し、表示するアプリ

Notifications You must be signed in to change notification settings

waruru/Positter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 14, 2022
1cdbc29 · Nov 14, 2022

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Positter

本番環境

デプロイ先: PythonAnywhere

url: https://waruru.pythonanywhere.com/

ローカルでのサーバー起動

前提条件

  • Docker のインストール・設定が行われている
  1. 環境変数の設定
  • .envファイル生成
touch .env
  • 環境変数の設定
DB_USER='postgres'
DB_PASSWORD='postgres'

TWITTER_BEARER_TOKEN=
TWITTER_API_KEY=
TWITTER_SECRET_KEY=
TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_TOKEN_SECRET=

GOOGLE_API_KEY=

Twitter APIGoogle APIのKeyは各自で取得すること。 ※ GOOGLE_APINatural Language APIを使用できるようにする必要がある。

  1. 以下のコマンドをターミナルで実行
docker-compose build
docker-compose up
  1. localhost:8000にアクセスする。

バージョン情報

Python: 3.9

Django: 3.2

About

twitterのツイート情報から、ネガティブ or ポジティブなツイートのみを取得し、表示するアプリ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published