{"id":19797627,"url":"https://github.com/samantha-ruth/u-develop-it","last_synced_at":"2026-05-01T22:35:45.238Z","repository":{"id":41100427,"uuid":"508029029","full_name":"Samantha-Ruth/U-Develop-It","owner":"Samantha-Ruth","description":"The backend of a voting website. This project was built using node, npm inquirer, npm console table, SQL, and MySQL2.","archived":false,"fork":false,"pushed_at":"2022-09-30T19:00:01.000Z","size":213,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T16:33:08.317Z","etag":null,"topics":["inquirer-prompt","mysql2","nodejs","npm","sql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Samantha-Ruth.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}},"created_at":"2022-06-27T18:59:35.000Z","updated_at":"2022-10-01T17:27:46.000Z","dependencies_parsed_at":"2023-01-18T10:17:24.026Z","dependency_job_id":null,"html_url":"https://github.com/Samantha-Ruth/U-Develop-It","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Samantha-Ruth/U-Develop-It","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FU-Develop-It","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FU-Develop-It/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FU-Develop-It/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FU-Develop-It/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samantha-Ruth","download_url":"https://codeload.github.com/Samantha-Ruth/U-Develop-It/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samantha-Ruth%2FU-Develop-It/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32515838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["inquirer-prompt","mysql2","nodejs","npm","sql"],"created_at":"2024-11-12T07:26:06.879Z","updated_at":"2026-05-01T22:35:45.221Z","avatar_url":"https://github.com/Samantha-Ruth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# U-Develop-It\n\n## Description\n\nThis project uses a combination of node, inquirer package, npm console.table, SQL, and mysql2 to create an accessible database.\n\nThis project was a great introductionto SQL.  I practiced creating schemas and seed files, as well as learning the SQL language, using join to create database tables and other queries to edit and delete the data.  I also worked with npm inquirer again, as well as learned about creating a connection to the server using constructors.  \n\n## Table of Contents\n\n* [Installation](#installation)\n* [Usage](#usage)\n* [Links](#links)\n* [Questions](#questions)\n\n## Installation\n\nIf the user already has node installed on their device, they can download this project and run \"npm init\" and then \"npm install --save inquirer@^8.0.0 (** please note: newer versions of inquirer will not work properly with this program!), and then npm install console.table --save.  After this, install --save mysql2. In order to protect passwords, the user will also want to \"install dotenv\" as well. \n\nIn order to access the mysql2 shell,  the user needs to create a .env file with the following, replacing \u003cusername\u003e and \u003cuser password\u003e with the users own username and password: \n  \nDB_NAME=ecommerce_db\n\nDB_USER= \u003c username \u003e\n\nDB_PASSWORD= \u003c user password \u003e\n\n\nTo ensure the user is connected to the correct database, navigate to the root folder of the project, and then open the mysql2 shell and enter \"source db/schema.sql\".  Then enter \"source db/seeds.sql\" to seed the database file. Exit the mysql2 shell by entering \"exit\" into the command line.\n\nFinally, connect the server by entering \"npm start\" into the command line.\n\n## Usage\n\nThis is a voting app to pick a new president for an imaginary group named \"U Develop It\".  This project developed the backend relational database for this voting application.  The user can pick the individual they would like to be president and cast a vote for them on this application.  The user can then view how many votes each candidate has received and with which parties they are affiliated. \n\nNote: there is no front end to this application, it is purely SQL backend.  To view the functionality of the backend, connect to either Insomnia or Postman and type localhost:3001/api/candidates in to the top bar or http://localhost:3001/api/parties.  You can also view http://localhost:3001/api/voters. From here, you can utilize CRUD commands to create, view, update, and delete new candidates, parties, and voters. \n  \n\u003cimg width=\"948\" alt=\"Screen Shot 2022-09-30 at 12 22 01 PM\" src=\"https://user-images.githubusercontent.com/64170123/193338162-adc05ca2-4bc7-40ba-952b-4aa58bce9391.png\"\u003e\n  \n\u003cimg width=\"948\" alt=\"Screen Shot 2022-09-30 at 12 22 36 PM\" src=\"https://user-images.githubusercontent.com/64170123/193338160-995af9f2-6270-48a8-8459-8282c9a13886.png\"\u003e\n\n## Links\n\n\nThe url of the Git repository is here: https://github.com/Samantha-Ruth/U-Develop-It\n\n\n## Questions\n\nIf you have any questions about the repo, open an issue or you can find more of my work at (https://gitHub.com/Samantha-Ruth).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamantha-ruth%2Fu-develop-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamantha-ruth%2Fu-develop-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamantha-ruth%2Fu-develop-it/lists"}