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-devto build development imagemake npm-cito install npm dependencies (as per the lock file)make bundleto bundle JavaScript & Comake start-devto start development server
make install-dependency ARGS="--save git+https://git@github.com/substance/texture.git#v1.0"
Note: all npm or gulp commands need to be run from the demo folder.
npm installto install dependenciesnpm run buildorgulp buildto build the demo
- Start site, run either:
npm startorgulp serveto serve the demo onhttp://localhost:3000(uses browserSync)npm run watchorgulp watchwatches for and rebuilds based on changes withinsrc, it opens a Chrome tab and auto reloads on build.
- Start application at the root (via
make startor docker-compose) - build demo site (e.g.
npm installandnpm run build, see above) - Start site, run either:
npm run start-with-api-proxyto start the server without watchingnpm run watch-with-api-proxyto 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-proxyto start the server without watchingnpm run watch-with-live-site-api-proxyto start the server while watching for changes
After starting the demo website using one of the above methods, it be available on two ports: