GithubHelp home page GithubHelp logo

alicevik22 / platform-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openlibraryenvironment/platform-rs

0.0 0.0 0.0 16.19 MB

Stripes platform for Resource Sharing App

License: Apache License 2.0

Shell 7.63% JavaScript 91.17% HTML 1.20%

platform-rs's Introduction

STRIPES Resource Sharing platform

Copyright (C) 2015-2022 The Open Library Foundation

This software is distributed under the terms of the Apache License, Version 2.0. See the file "LICENSE" for more information.

TL;DR

curl -s "https://raw.githubusercontent.com/openlibraryenvironment/platform-rs/master/helper_scripts/setup" | bash
cd rs_ui/platform-rs
yarn config set @folio:registry https://repository.folio.org/repository/npm-folio/
yarn config set @reshare:registry https://nexus.libsdev.k-int.com/repository/libsdev-npm-group
yarn install
stripes serve ./stripes.config.js

Introduction

This is the Resource Sharing Stripes "platform". It consists simply of an NPM package.json that specifies the version of @folio/stripes and of any Stripes modules you wish to make available as part of the Resource Sharing platform to generate client bundles along with a utility for generating module descriptors for each Stripes module.

Please see the quick start guide for more information.

The stripes.config.js is a configuration for a specific tenant. In general, a platform supports multiple tenants, each of which may include a different set of the available modules. You can copy the stripes.config.js file to be your stripes.config.js.local configuration file.

Installation

Install platform dependencies

$ yarn config set @folio:registry https://repository.folio.org/repository/npm-folio/
$ yarn config set @reshare:registry https://nexus.libsdev.k-int.com/repository/libsdev-npm-group
$ yarn install

Build and serve

To build and serve platform-rs in isolation for development purposes, run the "start" package script.

$ yarn start

The default configuration assumes an Okapi instance is running on http://localhost:9130 with tenant "diku". The options --okapi and --tenant can be provided to match your environment.

$ yarn start --okapi http://localhost:9130 --tenant diku

To build a platform-rs bundle for production, modify stripes.config.js with your Okapi and tenant, then run the "build" script, passing it the name of the desired directory to place build artifacts.

$ yarn build ./output

See the build and serve command reference in stripes-cli for a list of available options.

Tests

End-to-end tests

Full system integration tests require a running Okapi appropriately configured as a reshare system. The default configuration expects Okapi running on http://localhost:9130 with tenant "diku". To build and run integration tests for platform-rs with these defaults, invoke cypress run via the cypress yarn script.

$ yarn cypress run

To view and interact with tests while they are run:

$ yarn cypress open

To run a specific test use --spec.

$ yarn cypress run --spec cypress/integration/visit-apps.js

To run the tests against another system, copy cypress.json and modify to suit then indicate the alternative configuration via --config-file

$ yarn cypress run --config-file cypress.json.local

Additional information

See project PR at the Open Library Foundation issue tracker.

Other ReShare documentation is in the project's Confluence wiki

platform-rs's People

Contributors

ihardy avatar skomorokh avatar miketaylor avatar ianibo avatar ethanfreestone avatar chrisatmarmot avatar sosguthorpe avatar chaswoodfield avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.