{"id":16222778,"url":"https://github.com/freinet12/random-quote-api","last_synced_at":"2026-01-12T02:09:32.636Z","repository":{"id":42316479,"uuid":"215628465","full_name":"freinet12/random-quote-api","owner":"freinet12","description":"This is a simple API built with nodejs, expressjs, and mysql.","archived":false,"fork":false,"pushed_at":"2022-12-10T06:45:00.000Z","size":179,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T12:35:27.554Z","etag":null,"topics":["api","express","mysql","nodejs","sequelize"],"latest_commit_sha":null,"homepage":null,"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/freinet12.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":"2019-10-16T19:31:01.000Z","updated_at":"2020-01-18T01:10:44.000Z","dependencies_parsed_at":"2023-01-26T04:16:19.963Z","dependency_job_id":null,"html_url":"https://github.com/freinet12/random-quote-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/freinet12/random-quote-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freinet12%2Frandom-quote-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freinet12%2Frandom-quote-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freinet12%2Frandom-quote-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freinet12%2Frandom-quote-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freinet12","download_url":"https://codeload.github.com/freinet12/random-quote-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freinet12%2Frandom-quote-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"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":["api","express","mysql","nodejs","sequelize"],"created_at":"2024-10-10T12:15:14.577Z","updated_at":"2026-01-12T02:09:32.619Z","avatar_url":"https://github.com/freinet12.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random Quote API\nThis is a simple API built with nodejs, expressjs, and mysql.\nI built this for freeCodeCamp's \u003ca href=\"https://bit.ly/332WdHJ\" \u003eRandom Quote Machine project\u003c/a\u003e.\n\u003cbr\u003e\n\u003cbr\u003e\n# Getting Started\n  - Installation:\u003cbr\u003e\u003cbr\u003e\n      - Clone this repo\u003cbr\u003e\u003cbr\u003e\n      - run \u003ccode\u003enpm install\u003c/code\u003e to install all dependencies\u003cbr\u003e\u003cbr\u003e\n      - Install MYSQL and start the server:\u003cbr\u003e\n         - You need MySQL running in order to use this project. \u003cbr\u003e\n         - If you're on Linux, install MySQL for your flavor and start the server.\u003cbr\u003e\n         - If you're on Mac, you can use \u003ca href=\"https://www.mamp.info/en/\"\u003eMAMP\u003c/a\u003e. \u003cbr\u003e\n         - If you're on Windows, you can use \u003ca href=\"https://www.apachefriends.org/index.html\"\u003eXAMPP\u003c/a\u003e \n             or \u003ca href=\"https://sourceforge.net/projects/wampserver/\"\u003eWAMP\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n      - Open the .env-example file and update the necessary database configs (database username, database password, database host, etc)\u003cbr\u003e\u003cbr\u003e\n      - Run \u003ccode\u003enpx sequelize db:migrate\u003c/code\u003e to run the migrations and create all the database tables (make sure MSQL is running)\n      - Run \u003ccode\u003enpx sequelize db:seed:all\u003c/code\u003e to seed the database with fake data generated with \u003ca href=\"https://www.npmjs.com/package/faker\"\u003eFaker\u003c/a\u003e\n         \u003cbr\u003e\u003cbr\u003e\n      - run \u003ccode\u003enpm start \u003c/code\u003e to run the app\n         \u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n         \n         \n - Get Requests\n      - Get All Quotes\n        - \u003ccode\u003elocalhost:3000/api/quotes\u003c/code\u003e will return all quotes, paginated at 10 records per page. \n          - to navigate between paginated page results, do \u003ccode\u003elocalhost:3000/api/quotes?page=2\u003c/code\u003e and so on\n      - Get A single Quote\n        - \u003ccode\u003elocalhost:3000/api/quotes/1\u003c/code\u003e will return the quote with an id of 1\n      - Get Quotes by Author ID\n        - \u003ccode\u003elocalhost:3000/api/quotes?authorId=3\u003c/code\u003e will return all quotes for the author with an id of 3\n        \u003cbr\u003e\u003cbr\u003e\n     - Get All Authors\n       - \u003ccode\u003elocalhost:3000/api/authors\u003c/code\u003e will return all authors paginated at 10 records per page.\n         - to navigate between paginated page results, do \u003ccode\u003elocalhost:3000/api/authors?page=2\u003c/code\u003e and so on\n     - Get a Single Author by ID\n       - \u003ccode\u003elocalhost:3000/api/authors/1\u003c/code\u003e will return the author with an id of 1\n     - Get Author By Name\n       - \u003ccode\u003elocalhost:3000/api/authors?authorName=\u003cauthor's name here\u003e\u003c/code\u003e\n       \n - Post Requests\n \n       \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreinet12%2Frandom-quote-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreinet12%2Frandom-quote-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreinet12%2Frandom-quote-api/lists"}