-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* readme for the bulletin_board api client * complete server readme * voting schemes readmes * fix typos * Update bulletin_board/ruby-client/README.md Co-authored-by: Andrés Pereira de Lucena <[email protected]> * Update bulletin_board/ruby-client/README.md Co-authored-by: Andrés Pereira de Lucena <[email protected]> * Update bulletin_board/ruby-client/README.md Co-authored-by: Andrés Pereira de Lucena <[email protected]> * Update bulletin_board/ruby-client/README.md Co-authored-by: Andrés Pereira de Lucena <[email protected]> * Update bulletin_board/ruby-client/README.md Co-authored-by: Andrés Pereira de Lucena <[email protected]> --------- Co-authored-by: Andrés Pereira de Lucena <[email protected]>
- Loading branch information
1 parent
46faa76
commit b80e7e3
Showing
4 changed files
with
70 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,41 +9,57 @@ The Bulletin Board is a service composed by an Encryption Engine and an Append-O | |
- System dependencies: | ||
- Python gmpy2 package dependencies: libgmp, libmpfr and libmpc | ||
|
||
The Bulletin Board depends on the existence of a Decidim installation. | ||
The Bulletin Board is intended to use alongside a Decidim installation. Its main purpose is to provide a GraphQL interface to a secure, auditable and verifiable voting system. This is currently achieved by using the [ElectionGuard python implementation](https://github.com/microsoft/electionguard-python), developed by Microsoft. So this server acts as a [wrapper to the ElectionGuard python code](../../voting_schemes/electionguard/python-wrapper). | ||
|
||
- Installation: | ||
See how python code is executed using PyCall here: | ||
- https://github.com/decidim/decidim-bulletin-board/blob/develop/bulletin_board/server/app/services/voting_scheme/electionguard/voter.rb | ||
- https://github.com/decidim/decidim-bulletin-board/blob/develop/bulletin_board/server/app/services/voting_scheme/electionguard/bulletin_board.rb | ||
|
||
Please check the [main documentation](../../README.adoc) for this repository for more convenient ways to run the Bulletin Board. | ||
|
||
## Installation: | ||
|
||
First, clone the repository and enter in the new folder: | ||
|
||
``` | ||
```bash | ||
git clone [email protected]:decidim/decidim-bulletin-board.git | ||
cd decidim-bulletin-board/server | ||
``` | ||
|
||
Now, execute these commands: | ||
|
||
``` | ||
```bash | ||
bundle install | ||
npm install | ||
rails db:create | ||
rails db:migrate | ||
``` | ||
|
||
- How to run the rubocop linter | ||
## Run the server | ||
|
||
```bash | ||
bin/rails server | ||
``` | ||
|
||
Conect to the GraphQL interface in http://localhost:3000/api (documentation is embedded) | ||
|
||
## other commands | ||
|
||
- How to run the rubocop linter | ||
|
||
```bash | ||
bundle exec rubocop | ||
``` | ||
|
||
- How to run the test suite | ||
|
||
``` | ||
```bash | ||
bundle exec rspec | ||
``` | ||
|
||
- How to update the GraphQL schema definition run: | ||
|
||
``` | ||
```bash | ||
bundle exec rake schema:generate | ||
npm run schema:generate | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters