- python 3.8.x
- poetry
- redis
brew install mecab-ipadicsudo apt install mecab libmecab-dev mecab-ipadic-utf8cp .env.sample .env
poetry run poetry install
poetry run python manage.py migratepoetry run python manage.py runserverpoetry run python manage.py createsuperuser# after run server
open localhost:8000/schema/ # need session loginpython manage.py showmigrations
python manage.py migrate main 00xx # rollback to 00xxhttp post http://localhost:8000/api/register/dummy/
http post http://localhost:8000/api/auth/user/ [email protected] 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 wscatwscat -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/