{"id":28168917,"url":"https://github.com/osprogramadores/quotes-backend","last_synced_at":"2025-05-15T15:14:57.720Z","repository":{"id":200181295,"uuid":"353575136","full_name":"OsProgramadores/quotes-backend","owner":"OsProgramadores","description":"Implements an inspirational quotes back end using Go.","archived":false,"fork":false,"pushed_at":"2024-03-07T05:21:59.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-17T05:13:18.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/OsProgramadores.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}},"created_at":"2021-04-01T04:40:56.000Z","updated_at":"2024-04-17T05:13:21.789Z","dependencies_parsed_at":null,"dependency_job_id":"1cb4e3b6-9251-4d5d-a92c-f121006d9395","html_url":"https://github.com/OsProgramadores/quotes-backend","commit_stats":null,"previous_names":["mpinheir/quotes-backend","osprogramadores/quotes-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsProgramadores%2Fquotes-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsProgramadores%2Fquotes-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsProgramadores%2Fquotes-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OsProgramadores%2Fquotes-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OsProgramadores","download_url":"https://codeload.github.com/OsProgramadores/quotes-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364224,"owners_count":22058880,"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":[],"created_at":"2025-05-15T15:14:38.224Z","updated_at":"2025-05-15T15:14:57.708Z","avatar_url":"https://github.com/OsProgramadores.png","language":"Go","readme":"# Quotes\n\n# What does this code do?\n\nThis code implements a back end that returns a JSON file containing a random inspirational quote and the respective author.\n\nThe quotes are stored in a sqllite database.\n\nThe following data is returned to the API consumer:\n\n```\nQuote\nAuthor\n```\n\nPlease note that the sample Quotes database file contains a list of quotes in Portuguese. You are welcome to adjust to your language as needed.\n\n\n## Prerequisites\n\n[Install Go](https://golang.org/doc/install)\n\n## How does it work?\n\nBuild the code\n\n```\ngo build\n```\n\nRun the program\n\n```\n./quotes\n```\n\nBasic test\n\n```\ncurl localhost:8080/\n```\n\nExpected result\n\n```\n{\"Quote\":\"Random quote.\",\"Author\":\"Random Quote Author\"}\n```\n\n## Running as a Docker container\nThe following scripts have been created for your convenience\nbuild.sh\nstart.sh\nstop.sh\nuse chdmod +x scrip_name to ensure that the scripts can execute\n\n**build image**\n./build.sh\n\n**start container**\n./start.sh\n\n**stop container**\n./stop.sh\n\n**testing container app\ncurl localhost:8080/  or acess localhost:8080 on your favourite web browser\n\n\n\n## Author\n\n[**Marcelo Pinheiro**](https://github.com/mpinheir)\n\n## License\n\nCopy and use as you wish.\n\n## Thank you\n\n* [Go Language creators](https://en.wikipedia.org/wiki/Go_(programming_language))\n* To [Marco Paganini](https://github.com/marcopaganini) for his guidance\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosprogramadores%2Fquotes-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosprogramadores%2Fquotes-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosprogramadores%2Fquotes-backend/lists"}