{"id":21935970,"url":"https://github.com/codewizard-404/presidential-elections","last_synced_at":"2026-05-01T18:32:27.729Z","repository":{"id":263889286,"uuid":"891706543","full_name":"CodeWizard-404/Presidential-Elections","owner":"CodeWizard-404","description":"A secure online voting system for presidential elections.","archived":false,"fork":false,"pushed_at":"2024-12-11T17:14:33.000Z","size":10830,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T14:16:08.666Z","etag":null,"topics":["angular","jwt-auth","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeWizard-404.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-20T20:09:30.000Z","updated_at":"2025-02-16T17:43:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c5728f3-36ae-4a6d-8c2b-8521ba892d62","html_url":"https://github.com/CodeWizard-404/Presidential-Elections","commit_stats":null,"previous_names":["codewizard-404/presidential-elections"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWizard-404%2FPresidential-Elections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWizard-404%2FPresidential-Elections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWizard-404%2FPresidential-Elections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWizard-404%2FPresidential-Elections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeWizard-404","download_url":"https://codeload.github.com/CodeWizard-404/Presidential-Elections/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244966524,"owners_count":20539797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["angular","jwt-auth","mongodb","nodejs"],"created_at":"2024-11-29T01:12:36.854Z","updated_at":"2026-05-01T18:32:27.679Z","avatar_url":"https://github.com/CodeWizard-404.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Presidential Elections - Secure Online Voting System\n\nA dynamic, full-stack **online voting system** for presidential elections, built with **Angular**, **Node.js**, and **MongoDB**. The system allows secure and transparent voting, ensuring integrity and privacy for all users.\n\n---\n\n\n## 🚀 **Installation and Setup**\n\nFollow the steps below to run the project locally.\n\n### 1. **Clone the repository**\n\n```bash\ngit clone https://github.com/CodeWizard-404/Presidential-Elections.git\ncd Presidential-Elections\n```\n\n### 2. **Install dependencies**\n\n#### Frontend (Angular)\nNavigate to the frontend directory and install the Angular dependencies:\n\n```bash\ncd Front-End\nnpm install\n```\n\n#### Backend (Node.js)\nGo to the backend directory and install the necessary Node.js modules:\n\n```bash\ncd ../Back-End\nnpm install\n```\n\n### 3. **Set up MongoDB**\n\nMake sure MongoDB is installed and running. You can use a local MongoDB instance or a cloud database like **MongoDB Atlas**.\n\n1. **Start MongoDB** locally or configure it via your **MongoDB Atlas** connection string.\n2. start a connection on port 27017.\n\n### 4. **Import Election Data**\n\nImport your election data (e.g., candidates, voter records) from the provided **JSON files** into the database.\n\n#### Example: Importing Election Data\n\nYou can use **MongoDB Compass** or a script to load the JSON files. \n\nIn the **`Database`** section of your MongoDB setup, import the data into the appropriate collections:\n\n```bash\n# For importing elections data:\nmongoimport --db GEP --collection elections --file GEP.elections.json\n```\n\nMake sure that the structure in the JSON matches your database schema (e.g., elections, candidates).\n\n---\n\n## 🔧 **Running the Application**\n\nOnce dependencies are installed and data is imported, you’re ready to run the project!\n\n### 1. **Start the Backend Server**\n\nFrom the **Back-End** folder, start the server:\n\n```bash\nnpm start\n```\n\nBy default, the backend will run on [http://localhost:3005](http://localhost:3005).\n\n### 2. **Start the Frontend Application**\n\nIn the **Front-End** folder, run:\n\n```bash\nng serve\n```\n\nNow, open your browser and go to [http://localhost:4200](http://localhost:4200). You should see the application running!\n\n---\n\n## ⚙️ **Features**\n\n- **User Authentication**: Secure login system for voters and administrators.\n- **Election Management**: Admin can create and manage elections, set candidates, and track voting progress.\n- **Voting Mechanism**: Voters can cast their votes securely.\n- **Real-Time Results**: Election results are automatically updated and shown to authorized users.\n  \n---\n\n## 🛠 **Technologies Used**\n\n- **Angular**: Powerful framework for dynamic, single-page applications.\n- **Node.js**: Asynchronous event-driven JavaScript runtime for the backend.\n- **MongoDB**: NoSQL database for flexible, scalable storage.\n\n---\n\n## 📜 **License**\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n\n---\n\n## 📸 **Screenshots**\n\n![Page Screenshot](screenshots/home.png)\n![Page Screenshot](screenshots/condidate.png)\n![Page Screenshot](screenshots/cond.png)\n![Page Screenshot](screenshots/results.png)\n![Page Screenshot](screenshots/login.png)\n![Page Screenshot](screenshots/signup.png)\n![Page Screenshot](screenshots/profile.png)\n![Page Screenshot](screenshots/admin.png)\n![Page Screenshot](screenshots/addcondi.png)\n\n\n\n---\n\n## 💬 **Contributing**\n\nWe welcome contributions! Feel free to fork this repository and submit pull requests. If you have any suggestions or find any bugs, open an issue!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewizard-404%2Fpresidential-elections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewizard-404%2Fpresidential-elections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewizard-404%2Fpresidential-elections/lists"}