- python 3.8.x
- poetry
- redis
brew install mecab-ipadic
sudo apt install mecab libmecab-dev mecab-ipadic-utf8
cp .env.sample .env
poetry run poetry install
poetry run python manage.py migrate
poetry run python manage.py runserver
poetry run python manage.py createsuperuser
# after run server
open localhost:8000/schema/ # need session login
python manage.py showmigrations
python manage.py migrate main 00xx # rollback to 00xx
http post http://localhost:8000/api/register/dummy/
http post http://localhost:8000/api/auth/user/ email=test@test.com password=testuser
http post http://localhost:8000/api/auth/refresh/ token=$TOKEN
http post http://localhost:8000/api/auth/verify/ token=$TOKEN
http http://localhost:8000/api/user/ Authorization:"JWT $TOKEN"
npm install -g wscat
wscat -c localhost:8000/ws/room/test/ -H "Authorization:JWT $TOKEN"
need to set local/wikipedia/{jawiki.doc2vec.dbow300d.model|*.npy}
e.g. from https://yag-ays.github.io/project/pretrained_doc2vec_wikipedia/