Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Rise-Vision/rise-twitter

Repository files navigation

CircleCI

rise-twitter

Rise Vision Twitter Component.

The Twitter component is encased in a wrapper component which makes up the widget.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:3000
npm run dev

# build for staging with minification
npm run build-stage

# build for production with minification
npm run build-prod

Test Scripts

# run unit tests
npm run test-unit

# run integration tests
npm run test-integration

# run all tests
npm run test

Run Locally

First, clone every individual Player Module (i.e. Twitter Module) and start them.

# at localhost:3000
npm run start

Manual Testing

As Twitter Component needs Twitter Module to run, we need Rise Player or a simulated Rise Player to manually test. It is not recommended that you clone, install and run every individual module (i.e. Twitter Module, Licensing Module, Local Storage Module) and run Twitter Component Locally.

Instead, manually test using an actual display or use a simulated display via software similar to VirtualBox. Here are the testing steps:

  1. Build Twitter Component for production
npm run build-prod
  1. Upload the resulting files in the dist folder to a server and make all files public in a folder called "rise-twitter"

  2. Clone Rise Playlist and build

git clone https://github.com/Rise-Vision/rise-playlist.git
npm install
npm run build
  1. Upload the resulting files in the dist folder to the same server and make all the files public in a folder called "rise-player" so that the file structure is as such:
- rise-twitter
- rise-player
  1. Create a presentation and add an instance of Twitter Widget.

  2. Click on "View HTML" and navigate to the placeholder with the Twitter Widget and replace URL in objectData attribute to the rise-twitter-widget.html file mentioned in step 2.

  3. Save and publish your presentation and set your display or simulated display to show the presentation.

  4. Start Player on your display or simulated display.

Deploying to Staging

Merging to master automatically deploys to staging

Deploying to Stable

Pull Master branch into Stable branch

git pull origin master

Submitting Issues

If you encounter problems or find defects we really want to hear about them. If you could take the time to add them as issues to this Repository it would be most appreciated. When reporting issues, please use the following format where applicable:

Reproduction Steps

  1. did this
  2. then that
  3. followed by this (screenshots / video captures always help)

Expected Results

What you expected to happen.

Actual Results

What actually happened. (screenshots / video captures always help)

Contributing

All contributions are greatly appreciated and welcome! If you would first like to sound out your contribution ideas, please post your thoughts to our community, otherwise submit a pull request and we will do our best to incorporate it. Please be sure to submit corresponding E2E and unit tests where appropriate.

Languages

If you would like to translate the user interface for this product to another language, please refer to the common-i18n repository.

Resources

If you have any questions or problems, please don't hesitate to join our lively and responsive community at https://help.risevision.com/hc/en-us/community/topics.

About

Rise Twitter Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published