Skip to content

A Boilerplate repository for creating a new DECSYS Survey Platform Response Component

License

Notifications You must be signed in to change notification settings

decsys/component-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub

DECSYS Component Boilerplate

This repository contains everything needed to create an Interactive Response Component for the DECSYS Survey Platform.

  • It implements a very basic component as an example
  • it provides build scripts and dependencies for easily building a component ready to use with the DECSYS Survey Platform.

Getting Started

  1. Either:
    • Download the latest code from master and use it as a starting point for your own component.
    • Clone this repository, then set the remote origin to another git repository for your own component.
  2. npm install.
  3. Make changes to the files in src/ to build your component.
    • ℹ You shouldn't need to touch index.js
    • ✅ Add or remove dependencies using npm
    • ⚠ Don't modify the devDependencies
      • the build processes depend on them, and are preconfigured for outputting a module the Survey Platform can use.
    • ⚠ Don't modify the peerDependencies
      • they are correctly configured for dependencies the Survey Platform will fulfill.
  4. npm run storybook to test your component visually and interactively.
  5. npm run build to build a distributable version of your component which can be used in the Survey Platform.

Learn how to build a component from this boilerplate

ℹ The first party DECSYS components may also be interesting points of reference.

👉 Look for any repository that ends in -component in the DECSYS' GitHub organisation.

Check out the Wiki for more detailed information.

Component Response Statistics

Learn how to add statistics to a component

The boilerplate does not include statistics by default, as they are optional. For example the built-in confirmation-component doesn't have any.

Examples of stats can be found in the other built in components:

Licensing

Overview

This software is primarily licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only).

A summary is provided below; the full license text may be found in LICENSE.md.

Other license arrangements may be made as appropriate on request.

Copyright and License Summary

DECSYS Component Boilerplate

Copyright (C) 2019 Christian Wagner, LUCID (Lab for Uncertainty in Data and Decision Making)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

About

A Boilerplate repository for creating a new DECSYS Survey Platform Response Component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published