linguaportaを自動で解答するためのスクリプト+サーバー(DB)です。
- 単語の意味
- 空所補充
- pythonの環境構築
- リポジトリをクローン
git clone https://github.com/kathmandu777/linguaporta.git
bot/requirements.txt
に書かれているライブラリをインストールpip install -r bot/requirements.txt
- 自分のブラウザのドライバーをダウンロード (バージョンに注意)
CHROMEDRIVER
変数にドライバーのパスを設定bot/main.py
を実行python bot/main.py
Dependency management for Python files is done using POETRY.
- https://python-poetry.org/docs/#installation
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
(if needed)poetry install
(After cloning this repository)
This tool defines commands to be executed before committing. It is already defined in .pre-commit-config.yaml
, so you need to configure it in your environment. Please follow the steps below.
- https://pre-commit.com/#installation
pre-commit install
(After cloning this repository)
-
Clone this repository
-
Create fastapi.env with reference to fastapi.env.tmpl
-
Start Server
docker-compose up
-
Run bot/main.py
python bot/main.py
-
Dependency install
docker-compose run --rm fastapi poetry install
-
Setup Static Files
docker-compose run --rm fastapi poetry run python manage.py collectstatic --noinput
-
Migrate
docker-compose run --rm fastapi poetry run python manage.py migrate
-
Create Super User for Admin Page
docker-compose run --rm fastapi poetry run python manage.py createsuperuser
source alias.sh