-
run
git clone git@github.com:Regexose/SmallData.git
-
install python >= 3.8.0 (I recommend pyenv or virtualenv)
-
run
pip install -r requirements.txt
-
run
python -m spacy download de_core_news_sm
-
download the
german_model
and place it into the foldermodel_data
-
download trained models from https://1drv.ms/u/s!AmoEVYq8BVEZm75RMZ18TllnQRcxWw?e=Y30JCfand and put them in a folder
trained_models
in themodel_data
- folder -
install
postgres
, create a db and a user -
in the projects' root directory, create a copy of
settings.ini.template
, call itsettings.ini
. and edit with the correct values -
run
python manage.py makemigrations && python manage.py migrate
-
Load initial data into db by
python manage.py loaddata fixtures/initial_fixture.yaml
-
start the api:
python manage.py runserver
- cd into
frontend
, runnpm install
- inside
frontend
, create a file.env
with content (or add urls of running server)REACT_APP_WS_URL = ws://localhost:8000/ws/ REACT_APP_HTTP_URL = http://localhost:8000/api/
- run
npm run start
- open browser & navigate to
localhost:3000