1.0.0 • Published 4 years ago

vsmart-courseware-tools v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

vsmart-courseware-tools

UI for vsmart courseware service

NPM JavaScript Style Guide

Development

To start watch mode

  1. cd project folder
  2. yarn start { runs rollup with watch flag }

To start watch mode and run display app that's linked to local version of module

  1. cd project folder
  2. yarn start { runs rollup with watch flag }

&&

on another terminal 3. cd project folder/example 4. yarn start { runs create-react-app dev server }

Install

npm install --save vsmart-courseware-tools
yarn add vsmart-courseware-tools 

or

yarn add [file path]/vsmart-courseware-tools

Usage

import React, { Component } from 'react'

import { Mycomponent } from 'vsmart-courseware-tools'

class Example extends Component {
  render () {
    return (
      <MyComponent />
    )
  }
}

Available Components

  • CourseItemCard
  • CoursewareView
  • CreateCoursewarePage
  • Crossword
  • CoursewarePlayer
  • MemoryGame
  • CustomEditor

Note: Read me is available for each component for reference

UPDATES

New Components:

  • CoursewarePlayer
  • Memory Game --> MemoryGame
  • Ckeditor based EDITOR --> CustomEditor

Code Structure:

  • Change backendLink expected value from being a url to a graphql client
    • Added validations to Create courseware

License

If encountering babel version error:

yarn add babel-loader@^8.0.0-beta --dev

MIT ©