Giter Club home page Giter Club logo

5amogh / questionnaire-player Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 9.6 MB

The Questionnaire Player: A flexible Angular-based Web component for text, multi-select, radio, file upload, and matrix inputs. Easily adaptable for various frameworks or vanilla JS apps. Enhance user experiences seamlessly.

HTML 12.30% TypeScript 33.67% SCSS 53.69% JavaScript 0.34%
angular angularelements angularmaterial nodejs questionnaire survey webcomponents angularlibrary

questionnaire-player's Introduction

QuestionnairePlayer

The Questionnaire Player is a flexible Angular-based Web component for text, multi-select, radio, file upload, and matrix inputs. Easily adaptable for various frameworks or vanilla JS apps. Enhance user experiences seamlessly built with the help of angular version 16.2.1.

Prerequisites for setup

Angular 16, Nodejs 16.19.0

Setup

Run npm install after cloning the repo in local to install the necessary dependencies

Build QuestionnairePlayer and generate the webcomponent

Run npm run build-web-comp To build the player with the latest changes and to reflect the changes in webcomponent

Demo Application

Navigate to projects/questionnaire-app and Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

In-case the changes have been done in the library, after successful build by npm run build-web-comp the changes would automatically reflect in the app as well. ( only applicable to this app and not the react demo app).

Webcomponent

The Webcomponent can be downloaded by running npm i questionnaire-webcomponent

In our angular.json file, we have included the published web component script under the "scripts" section (projects -> questionnaire-app -> architect -> build). This script is responsible for adding the questionnaire player web component functionality to our demo application node_modules/questionnaire-webcomponent/questionnaire-player-webcomponent.js

To include the npm published styles of the webcomponent in the demo app, use node_modules/questionnaire-webcomponent/styles.scss in the "styles" section (projects -> questionnaire-app -> architect -> build in angular.json)'.

For usage of the webcomponent in a react app, visit : [https://github.com/5Amogh/react-usingwebcomponent-app]

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

questionnaire-player's People

Contributors

5amogh avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

syedameenabrar

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.