|
3 months ago | |
---|---|---|
.. | ||
build | 1 year ago | |
config | 1 year ago | |
dist | 1 year ago | |
docker | 1 year ago | |
locales | 1 year ago | |
scripts | 1 year ago | |
src | 9 months ago | |
static | 1 year ago | |
test | 1 year ago | |
.babelrc | 1 year ago | |
.dockerignore | 1 year ago | |
.editorconfig | 1 year ago | |
.eslintignore | 1 year ago | |
.eslintrc.js | 1 year ago | |
.gitignore | 1 year ago | |
Dockerfile | 1 year ago | |
README.md | 1 year ago | |
babel.config.js | 1 year ago | |
index.html | 1 year ago | |
jsconfig.json | 1 year ago | |
package.json | 3 months ago | |
yarn.lock | 3 months ago |
# install dependencies
npm install -g yarn
yarn
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# run unit tests
npm run unit
You can create file /config/local.json
see /config/local.example.json
to enable some convenience dev options:
target
: makes local dev server redirect to some existing instance's BE instead of local BE, useful for testing things in near-production environment and searching for real-life use-cases.
host
: mandatory, the value to use for Host
header, the same as SERVER_NAME
/AP_DOMAIN
in config.py
.
FE Build process also leaves current commit hash in global variable ___reel2bitsfe_commit_hash
so that you can easily see which reel2bits-fe commit instance is running, also helps pinpointing which commit was used when FE was bundled into BE.