This project is an assignment.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
- Clone the repo
https://github.com/ayazsayyed/aff-poll-widget.git
- Run
npm install
to install all the dependencies - Build the dev server by running
npm run dev
, which will open up a dev server on your localhost:3000
- Open
public/index.html
and add a new widget with below mentioned configurations.
Param | Desc | type |
---|---|---|
data-widget-id | A unique Poll id | String |
data-poll-question | A Poll/ Question to be hosted | String |
data-poll-options | Options for the poll | Array |
- Run
npm run test
to run the test cases for the component.
Hosted on Netlify
- Expired poll
- Disbaled poll option