Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faouzimohamed/evote-app
Online voting App using basic nodejs, express and openPGP for encryption.
https://github.com/faouzimohamed/evote-app
e-vote ejs express mongodb mongoose nodejs openpgp
Last synced: 1 day ago
JSON representation
Online voting App using basic nodejs, express and openPGP for encryption.
- Host: GitHub
- URL: https://github.com/faouzimohamed/evote-app
- Owner: faouziMohamed
- License: mit
- Created: 2021-07-24T02:26:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T21:40:27.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T16:51:49.420Z (over 1 year ago)
- Topics: e-vote, ejs, express, mongodb, mongoose, nodejs, openpgp
- Language: JavaScript
- Homepage: https://fz-evote.herokuapp.com/
- Size: 11.4 MB
- Stars: 3
- Watchers: 0
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# evote-app
Online voting App using basic nodejs, express and openPGP for encryption.
## Testing
1. First you need to install [mongodb server](https://www.mongodb.com/try/download/community) in you machine
- 🤭 By the way you can Fork 🐸 and star 💓 ⭐ the repo
1. Install [NodeJs](https://nodejs.org/en/download/) version > 10. Though, NodeJs LTS version 14 is recommended.
1. Clone the repo using one of the two methods:
```bash
# Using https link
git clone https://github.com/faouziMohamed/evote-app.git
```
```bash
# Or using the ssh link
git [email protected]:faouziMohamed/evote-app.git
```
1. Change directory to `evote-app` and install dependencies:```bash
cd evote-app
```- Install dependencies using `npm`
```bash
npm install
```- Or using `yarn`
```bash
yarn
```
1. For testing purpose create a file called `.env` in the root of the project (`evote-app`) and paste the following content:
This file will not be stagged into Git, Keep it only localy. Note that random secret bellow are generated using [`nanoid`](https://www.npmjs.com/package/nanoid#usage 'nanoid npm page')
```env
PORT = 3000
APP_NAME = 'evote-app'
DB_URL_DEV = 'mongodb://localhost:27017/evote-app'
# Change the uri bellow with a mongo cloud atlas uri for production
DB_URL_PROD = 'mongodb://localhost:27017/evote-app'
SESSION_EXPIRY = 1296000000
SESSION_MAXAGE = 1296000000SERVER_NAME = 'Web Server in node'
SERVER_EMAIL = '[email protected]'
SERVER_PASSHPRASE = 'U2FsdGVaJunkyRanDomSECRETuP'COCENTER_NAME = 'Counting Center'
COCENTER_EMAIL = '[email protected]'
COCENTER_PASSHPRASE = 'CPutHere A RANDOM SECRET9yfDbhnBm51kSNpkL'VALIDATION_CENTER_NAME = 'Validation Center'
VALIDATION_CENTER_EMAIL = '[email protected]'
VALIDATION_CENTER_PASSHPRASE = 'your RANDOM SERCER HERE plLrtFj2T7S'PASSPHRASE_KEY = 'RANDOMw22PiTFHSECRET0vQdZzUHQvIR98OWbVwpw9qZT_h'
SESSION_SECRET='cZk_slfK84QiDDo-vMARANDOM SECRET CODElKJRUs-v7QbxUW-4'
```
1. Then run tests on local typing:
|npm |-| yarn|
|-----|-|----|
|`npm run dev`|Or|`yarn dev`|
1. Open in your browser the url http://localhost:3000 to see result## 🆗 That's it!!!
LICENSE [MIT](LICENSE)