Coder Social home page Coder Social logo

flow-widget-react-template's Introduction

Development - React Widget for flow

In order to develop and publish this repository you will need the following:

  • run npm install to install the needed dependencies.

  • .env.development file with the following contents:

ENV=${whatever your local portal server is}

HOST=local.flow.${ENV}
HTTPS=true

You'll also need to have configured flow access tokens for your server. Your server will have a name for the upload scripts.

FLOW=${uploadCredentialName}

In order to establish your local dev environment you might also need to run: uploadSharedConfig.sh ${FLOW} uploadFlow.sh ${FLOW} uploadTrigger.sh ${FLOW}

Make sure you have an active cookie session with the local env & the production environment as well as any firewalls permitting access to the necessary servers.

  • build directory by using the following command:
yarn build
npm run-script build

Next you'll run a script to... generateResourceCollection.sh [takes 3 args]

  1. point it at the yarn build directory
  2. give it a folder to construct
  3. tell it the resource collection name
generateResourceCollection.sh ${1:build ${2:output} ${3:reactWidget}
uploadResourceCollection.sh ${2:output} ${FLOW}

It should be noted, you must run yarn build before publishing. The build directory is optimized for prod and where the script is directed to pull from.

You will also need to do a DNS override in your local hosts file. For this project the localhost has been set to:

127.0.0.1       local.flow.${ENV}

Features that can be found in code base:

  • Resize based on content for a React.js environment found in App.js using useLayoutEffect hook as well as query params with react router.

  • Blackboard filter allows for students to see all available courses. Instructors & Teaching Assistants are able to courses they're currently teaching and courses that will become available.

  • height.html is an example of how to reproduce the iframe in development. Please make sure to edit it before use, replacing the url of the iframe with the correct hostname for your local override.

  • darkmode support for campus.

flow-widget-react-template's People

Contributors

dave-low-priv avatar

Watchers

Chris Hagan avatar Liam Davis avatar  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.