- python 3.6.10
- node 12
- Install requirement component
git clone ...
cd sr
pyenv install 3.6.10
pyenv virtualenv 3.6.10 graphue
pyenv local 3.6.10 graphue
pip install -r requirements.txt
- Migrate db
flask db upgrade
- Start backend server
FLASK_ENV=development python manage.py
- Start frontend server
cd src/template
yarn
yarn serve
- Enter site
http://localhost:8080/install
http://localhost:5000/graphql
http://localhost:5000/rest
cd src
FLASK_ENV=development python manage.py
yarn add graphdoc
graphdoc -f -e http://localhost:5000/graphql -o ./docs/schema
- Load all language variable
cd src
pybabel extract -F babel.cfg -o messages.pot .
- Create translation files
cd src
pybabel init -i messages.pot -d app/language -l en
- Update translation files
cd src
pybabel update -i messages.pot -d app/language
- All in one line
pybabel extract -F babel.cfg -o messages.pot . && pybabel update -i messages.pot -d app/language && pybabel compile -d app/translations