{"id":19273657,"url":"https://github.com/yusufshakeel/votejs","last_synced_at":"2026-06-15T12:31:30.147Z","repository":{"id":42248184,"uuid":"281023640","full_name":"yusufshakeel/votejs","owner":"yusufshakeel","description":"This is a voting application using NodeJS.","archived":false,"fork":false,"pushed_at":"2023-01-11T03:32:24.000Z","size":1645,"stargazers_count":0,"open_issues_count":16,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-28T10:36:46.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yusufshakeel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-20T05:37:23.000Z","updated_at":"2020-08-07T16:41:53.000Z","dependencies_parsed_at":"2023-02-09T00:45:26.036Z","dependency_job_id":null,"html_url":"https://github.com/yusufshakeel/votejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yusufshakeel/votejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2Fvotejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2Fvotejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2Fvotejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2Fvotejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusufshakeel","download_url":"https://codeload.github.com/yusufshakeel/votejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusufshakeel%2Fvotejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34363537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T20:43:45.029Z","updated_at":"2026-06-15T12:31:30.116Z","avatar_url":"https://github.com/yusufshakeel.png","language":"JavaScript","funding_links":["https://www.patreon.com/yusufshakeel","https://www.paypal.me/yusufshakeel"],"categories":[],"sub_categories":[],"readme":"# votejs\nThis is a voting application using NodeJS.\n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/yusufshakeel/votejs)\n[![npm version](https://img.shields.io/badge/npm-0.1.7-blue.svg)](https://www.npmjs.com/package/votejs)\n[![Build Status](https://travis-ci.com/yusufshakeel/votejs.svg?branch=master)](https://travis-ci.com/yusufshakeel/votejs)\n[![Coverage Status](https://coveralls.io/repos/github/yusufshakeel/votejs/badge.svg?branch=master)](https://coveralls.io/github/yusufshakeel/votejs?branch=master)\n\n## Prerequisite\n\nWe will need the following to be installed on our system.\n\n- Node v10 or above\n- NPM v6 or above\n- Postgres v10 or above\n\n## Getting started\n\nRun the following command to install all the packages.\n\n```\n➜ npm install\n```\n\n#### Environment\n\nSet the environment by setting the environment variable `NODE_ENV`.\n\nAllowed values: dev, stage, prod\n```\n➜ export NODE_ENV=dev\n```\n\n#### Encryption Key\n\nSet the encryption key as environment variable. Make sure it is exactly 256 bits long (32 characters).\n```\n➜ export ENCRYPTION_KEY=crypto-key-exactly-32-chars-long\n```\nNote! Encryption algorithm used: `aes-256-cbc` and IV length is `16`.\n\n#### Database setup\n\nCreate a database in Postgres. Then export the following environment variables.\n\nOn my local machine the host, user, password, database and port for Postgres are the following.\n\nNote! If you have some other values then use that.\n \n```\n➜ export DB_HOST=localhost\n➜ export DB_USER=\n➜ export DB_PASSWORD=\n➜ export DB_DATABASE=votejs\n➜ export DB_PORT=5432\n```\n\nFor more details check the [NOTES.md](./NOTES.md) file.\n\n#### Seed\n\nRun the following command to insert the seed data in database.\n```\n➜ npm run db:seed\n```\n\n#### Demo admin for DEV environment\n\nFor development environment the following demo admin account is created when you run the `db:seed` command.\n\nYou can use the demo admin to explore the APIs in dev environment.\n\n```\n{\n  userName: 'demo.dev.admin',\n  emailId: 'demo.dev.admin@example.com',\n  password: 'root1234'\n  passcode: '123456'\n}\n```\nYou will find this in `seed/admin.js` file.\n\n#### Demo voter for DEV environment\n\nFor development environment the following demo voter account is created when you run the `db:seed` command.\n\nYou can use the demo voter to explore the APIs in dev environment.\n\n```\n{\n  userName: 'demo.dev.user',\n  emailId: 'demo.dev.user@example.com',\n  password: 'root1234'\n  passcode: '123456'\n}\n```\nYou will find this in `seed/voter.js` file.\n\n## DOCUMENTATION\n\n[DOCUMENTATION.md](./DOCUMENTATION.md)\n\n## License\nIt's free :smiley:\n\n[MIT License](https://github.com/yusufshakeel/votejs/blob/master/LICENSE) Copyright (c) 2020 Yusuf Shakeel\n\n#### Back this project\n\nIf you find this project useful and interesting then feel free to support me on [Patreon](https://www.patreon.com/yusufshakeel).\n\n#### Donate\nFeeling generous :smiley: [Donate via PayPal](https://www.paypal.me/yusufshakeel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusufshakeel%2Fvotejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusufshakeel%2Fvotejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusufshakeel%2Fvotejs/lists"}