eLife have handed over stewardship of ScienceBeam to The Coko Foundation. You can now find the updated code repository at https://gitlab.coko.foundation/sciencebeam/sciencebeam-texture and continue the conversation on Coko's Mattermost chat server: https://mattermost.coko.foundation/
For more information on why we're doing this read our latest update on our new technology direction: https://elifesciences.org/inside-elife/daf1b699/elife-latest-announcing-a-new-technology-direction
This method doesn't require a local version of npm
. It has the advantage of using a consistent version. But the API proxy is currently not supported (i.e. no PDF conversion).
make build-dev
to build development imagemake npm-ci
to install npm dependencies (as per the lock file)make bundle
to bundle JavaScript & Comake start-dev
to start development server
make install-dependency ARGS="--save git+https://[email protected]/substance/texture.git#v1.0"
Note: all npm
or gulp
commands need to be run from the demo
folder.
npm install
to install dependenciesnpm run build
orgulp build
to build the demo
- Start site, run either:
npm start
orgulp serve
to serve the demo onhttp://localhost:3000
(uses browserSync)npm run watch
orgulp watch
watches for and rebuilds based on changes withinsrc
, it opens a Chrome tab and auto reloads on build.
- Start application at the root (via
make start
or docker-compose) - build demo site (e.g.
npm install
andnpm run build
, see above) - Start site, run either:
npm run start-with-api-proxy
to start the server without watchingnpm run watch-with-api-proxy
to start the server while watching for changes
Note: If the ScienceBeam API request fails the first time, this may be due to a timeout while it is loading the models. It may work on subsequent requests.
This will proxy to the ScienceBeam API on sciencebeam-texture.elifesciences.org.
- Start site, run either:
npm run start-with-live-site-api-proxy
to start the server without watchingnpm run watch-with-live-site-api-proxy
to start the server while watching for changes
After starting the demo website using one of the above methods, it be available on two ports: