Skip to content

Assembly Voting Javascript Client

License

Notifications You must be signed in to change notification settings

aion-dk/js-client

Folders and files

NameName
Last commit message
Last commit date
Jan 21, 2025
Jan 21, 2025
Mar 14, 2023
Jul 28, 2022
Mar 11, 2025
Aug 6, 2024
Apr 26, 2023
Mar 14, 2023
Dec 1, 2022
Mar 15, 2022
Mar 22, 2022
Nov 5, 2021
Mar 7, 2022
Mar 22, 2022
Sep 28, 2022
Jan 17, 2025
Sep 27, 2021
Sep 23, 2021
Mar 14, 2023
Jul 5, 2022
Jan 17, 2025
Mar 11, 2025
Jan 17, 2025
Mar 15, 2022
Mar 31, 2022
Mar 22, 2022
Mar 12, 2025

Repository files navigation

Assembly Voting JS Client

Code coverage

Javascript API for building voter-facing election applications.

Installing

Install directly from Github into your Javascript project.

npm install @aion-dk/js-client

Documentation

https://aion-dk.github.io/js-client/

Optional docker setup

$ bin/docker-build
$ bin/docker-sh

Testing

To run tests:

yarn run test

To run the Benaloh flow and walkthrough test:

Delete the .skip instruction on line 9, in the test/benaloh_flow.test.ts, and on lines 11 and 90, in test/walkthrough.test.ts, and make sure you have Devbox’s services running and seeded.

yarn run test

To run the tests in watch mode:

yarn run tdd

To generate HTML documentation for external usage:

yarn run docs

Publishing

Publishing it done automatically by the pipeline. Check the pipeline to see if the publish was successful. Remember to update the package.json version.

Sequence of client method calls, when everything works, and voter does not test encryption