Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  dist
  package.json
  README.md
Size: Mime:
  README.md

Intro

This is a react website built with webpack to a static bundle with injector capabilities It talks to the wayke api on vcs

Development

npm install npm run dev

This will run the demo server which serves a page with the injector file.

A conditional "isBusinessLeasing" is a prop that hides/shows content related to business lease.

Build

Make sure your global gulp command line is up to date:

npm i -g gulp-cli

npm run build:vcs

Docker

docker build . -t testwayke docker run -p 8080:8080 testwayke

We currently have a new style staging environment in the cloud which is hooked up to the new deployer but still under development.

https://volvo-react-wayke-staging.c1.fbinhouse.se/#/s

Deployment to Staging

BUT due to time constraints, we will deploy this using the old method to hector and vcs.

Note: Don't forget to build before committing.

Commit everything to develop branch to see the example page running at:

https://hector.fbinhouse.se/volvo-react-wayke/develop/

Deployment to Master

Use slack command

/deploy vcs volvo-react-wayke

Inject to sitecore

Inject the application in to sitecore in the same way as the node demo server and index.php page:

  1. First add a container div with special id:
  2. Add the script tag

React Component

This repository (volvo-react-wayke) has been modified to also build a react component which is published to gem fury and used in the VDW Render lib (volvo-vdw-render-lib).

Built to the /dist dir which is git ignored.

The render lib is shared by the frontend (volvo-vdw-frontend) and backend dms admin panel (volvo-dms-spa) Hence, when updating this repository, you will need to:

  1. Build, commit, deploy the vcs library used with sitecore injection. (see above)
  2. Build the react component (npm run build:library)
  3. npm version [patch|minor|major]
  4. npm publish
  5. Upgrade the version of volvo-react-wayke in volvo-vdw-render-lib by doing an npm i @fbinhouse/volvo-react-wayke
  6. Continue following deploy instructions of volvo-vdw-render-lib in README.md file