Skip to content

asabina-de/smalldata_webserver

 
 

Repository files navigation

Installation

Backend

  1. run git clone git@github.com:Regexose/SmallData.git

  2. install python >= 3.8.0 (I recommend pyenv or virtualenv)

  3. run pip install -r requirements.txt

  4. run python -m spacy download de_core_news_sm

  5. download the german_model and place it into the folder model_data

  6. download trained models from https://1drv.ms/u/s!AmoEVYq8BVEZm75RMZ18TllnQRcxWw?e=Y30JCfand and put them in a folder trained_models in the model_data - folder

  7. install postgres, create a db and a user

  8. in the projects' root directory, create a copy of settings.ini.template, call it settings.ini. and edit with the correct values

  9. run python manage.py makemigrations && python manage.py migrate

  10. Load initial data into db by python manage.py loaddata fixtures/initial_fixture.yaml

  11. start the api: python manage.py runserver

Frontend

  1. cd into frontend, run npm install
  2. 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/
    
  3. run npm run start
  4. open browser & navigate to localhost:3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 48.5%
  • CSS 37.2%
  • Python 13.8%
  • HTML 0.5%