{"id":21697983,"url":"https://github.com/speratus/avant-guard-backend","last_synced_at":"2026-04-18T14:33:06.311Z","repository":{"id":42163235,"uuid":"241708394","full_name":"speratus/avant-guard-backend","owner":"speratus","description":"The API for Avant Guard, a music trivia game","archived":false,"fork":false,"pushed_at":"2023-01-19T17:28:58.000Z","size":175,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T15:18:01.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/speratus.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-02-19T19:37:15.000Z","updated_at":"2022-11-04T01:13:50.000Z","dependencies_parsed_at":"2023-01-28T23:45:30.635Z","dependency_job_id":null,"html_url":"https://github.com/speratus/avant-guard-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/speratus/avant-guard-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speratus%2Favant-guard-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speratus%2Favant-guard-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speratus%2Favant-guard-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speratus%2Favant-guard-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speratus","download_url":"https://codeload.github.com/speratus/avant-guard-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speratus%2Favant-guard-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31972359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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-25T19:30:24.122Z","updated_at":"2026-04-18T14:33:06.295Z","avatar_url":"https://github.com/speratus.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\nThis application is the backend for [Avant Garde](https://github.com/speratus/avant-guard-frontend).\nThe driving game logic behind the application is run on the backend, so it is the most critical part of \nthe application.\n\n### Features\nHere are a few of the things the backend is responsible for:\n\n* Picking a new song for a game.\n* Making Requests to the Last.fm API for song data.\n* Calculating the obscurity value of the game.\n* checking each answer against the correct answer.\n* calculating the final score of the game.\n* creating friendships between users.\n\n## Installation and setup\nYou will need ruby version `2.6.1p33` to install and run the avant garde backend.\nAt the very least, you will need the ruby gem `bundler` to install all the requied\ndependencies.\nAdditionally, you will need to have Postgresql installed and running on your machine.\n\n1. Navigate to the directory where you want to save the repository.\n\n2. Clone the repo:\n```\ngit clone https://github.com/speratus/avant-guard-backend\n```\n\n3. navigate into the repo and run:\n```\nbundle install\n```\n\n4. Once all the dependencies have been installed run the following commands to get the \n    database setup:\n```\n1. rake db:create\n2. rake db:migrate\n3. rake db:seed\n```\n\nThis will create the database and populate it with the initial seed data. The seed data is required for the app to\nfunction. Because seeding requires making API calls, each request has been rate limited so as to avoid overloading\nthe source API. As a result, it will take around 20 minutes to seed the database, but it may take as long as 42 minutes.\n\n5. Once Seeding is complete, the server can be started by running:\n```\nrails s\n```\nIf you have the [frontend](https://github.com/speratus/avant-guard-frontend) installed, you will be able to sign up for an account \nand start playing the game right away!\n\n## Testing\n\nYou can run the tests by running the following command:\n```\nrake\n```\nIf that does not work for some reason, you should also be able to use this command:\n```\nbundle exec rspec\n```\n\n## Dependencies\n\n* [Ruby on Rails](https://rubyonrails.org/)\n* [BCrypt](https://github.com/codahale/bcrypt-ruby)\n* [JWT](https://github.com/jwt/ruby-jwt)\n* [RSpec](http://rspec.info/)\n* [Damerau-Levenshtein](https://github.com/GlobalNamesArchitecture/damerau-levenshtein)\n* [Rest-Client](https://github.com/rest-client/rest-client)\n* [Dotenv-Rails](https://github.com/bkeepers/dotenv)\n* [Rack-CORS](https://github.com/cyu/rack-cors)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsperatus%2Favant-guard-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsperatus%2Favant-guard-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsperatus%2Favant-guard-backend/lists"}