Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.15 KB

File metadata and controls

51 lines (33 loc) · 1.15 KB

Install pipenv with pip install --user pipenv or brew install pipenv.

cd creator/creator-api

# create virtual env & install dependencies
make install

# active venv
pipenv shell

# create local_config.env if it's not exists
# cp creator/local_config.env.example creator/local_config.env
# then fill in API keys (local_config.env is gitignored)

# create db
createdb creator 

# migrate db
make upgrade-db


# initial testing user & role

# create role admin
python ./creator/cli.py bo_create_role -n admin

# create user admin
python ./creator/cli.py bo_create_user -n admin

# assign admin role to admin user
python ./creator/cli.py bo_set_role -u admin -r admin

# assign permissions for role admin
python ./creator/cli.py bo_set_perm -r admin -p all


# run in dev mode
make run

# run test
make test

Translations(Optionally)

  • init babel: make babel-init LANG=zh
  • mark translation strings with gettext functions
  • extract translation strings: make babel-update
  • update translations and finally compile them for use: make babel-compile