{"id":19753908,"url":"https://github.com/trisha/gravitate","last_synced_at":"2026-06-17T14:31:59.242Z","repository":{"id":167392163,"uuid":"392470708","full_name":"trisha/gravitate","owner":"trisha","description":"An iOS app for meeting other travelers based on your shared interests. Built during the first Miami Hack Week in August 2021.","archived":false,"fork":false,"pushed_at":"2021-08-14T19:44:52.000Z","size":661,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T08:56:40.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/trisha.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":"2021-08-03T22:15:06.000Z","updated_at":"2022-07-13T20:18:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d015220-b4e2-4981-acaa-12e8f0816e9c","html_url":"https://github.com/trisha/gravitate","commit_stats":null,"previous_names":["trisha/gravitate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trisha/gravitate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisha%2Fgravitate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisha%2Fgravitate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisha%2Fgravitate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisha%2Fgravitate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trisha","download_url":"https://codeload.github.com/trisha/gravitate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trisha%2Fgravitate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34453431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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-12T02:55:37.666Z","updated_at":"2026-06-17T14:31:59.237Z","avatar_url":"https://github.com/trisha.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n'Gravitate' is Tinder meets Meetup, but for travelers. Find other travelers in the city you're in to do activities with, and add tags or 'passions' to your profile to discover new friends. \n\n\nLive backend: \nhttp://gravitate.herokuapp.com/api/users\n\n\nhttp://gravitate.herokuapp.com/api/users/3 to view/edit a specific user\n\n\nhttp://gravitate.herokuapp.com/api/cities/miami to view the most popular tags by city\n\n\nRepo for native iOS frontend: https://github.com/horajikan/gravitate-ios\n\nNotion document: https://www.notion.so/Gravitate-app-overview-f3e51f9091d347beaa928ee6d86a092f\n\nFigma wireframes: https://www.figma.com/file/YflcdpdJa3RtiBS9mOZ1d5/Gravitate?node-id=10%3A505\n\n\nSQL Content Diagrams: https://app.genmymodel.com/api/dictionary/projects/_ljb8APR8EeutFtUJnEE8kQ\n\n\nHacker house: https://www.miamihackweek.com/ramp-house\n\n## To install, run the below commands in your terminal while you're in the project folder\n\n\u003e Git clone\n\n\u003e `cd [folderName]` to the project folder \n\n\u003e Run the command to download Ruby gems\n\n\u003e Run `rails server` to start the Rails app.\n\n\u003e Navigate to localhost:3000 if it doesn't do so already\n\n\u003e Run `exit` or `exit` to quit or force quit the Rails app.\n\n\nTo POST or PUT to a user (adding new tags to a user will also create a new tag):\n![Endpoints for editing user](/screenshots/edit_user.png)\n^ Where all field names are the same as in the db/migrate/schema.rb for User, except 'tag_list' takes one string with tags separated by commas and spaces.\n\n\n/db/migrate/schema.rb will list all available data fields\n![User schema with names of available fields](/screenshots/user_schema.png)\n\n\n## Gems used:\nhttps://github.com/mbleigh/acts-as-taggable-on\n\n\n\n\n\n# Trisha's Ruby on Rails and Heroku Deploy Notes\n\n\n## Heroku\n\n\n### To push any updates to the code: \n\n\n`git add .`\n\n\n`git commit -m \"Add message\"\n\n\n`git push heroku main`\n\n\n`git push`\n\n\n### To clear (which is different from dropping) the postgreSQL table and to reseed it:\n\n\n`heroku run rails console` to enter Rails console \n\n\n`User.destroy_all` and same for Tag\n\n\n`User.count` to confirm that the count is 0\n\n\n`exit` to exit rails console\n\n\n`heroku run rails db:seed`\n\n\n## How to download Ruby on Rails\n\n[Download rvm](https://rvm.io/rvm/install) if you don't have it already (I followed the instructions under 'Basic Install')\n\n`rvm list known`\n\n\n`rvm install 3.0.2` (replace version with most recent version)\n\n\n`gem`\n\n\n`rails`\n\n\n`gem install rails`\n\n\n`rails`\n\n\n`cd [Folder you want to create your project in]`\n\n\n`rails new gravitate --api -d=postgresql` to create a folder called 'gravitate' that's just an API, that uses a postgreSQL database\n\n\n`cd gravitate`\n\n\n`bin/rails db:migrate`\n\n\n`rails db:setup`\n\n\n`rails server` to start app, then go to localhost:3000\n\n\nAdding gems:\n\n\n- Add to 'Gemfile' file, you can also add engines (which are more powerful gems but that also have their own tables)\n\n\n- Run `bundle` in terminal to download \n\n\n`rails db:migrate` to migrate the engine databases I just copied over\n\n\n\nTo create a SQL model:\n`rails generate model user` to create a model named user, plus the table for it\n\n\nTo create a join table:\n`rails generate model user_city user:reference city:reference`\n\n\n\n`rails db:migrate` to run migration of models/tables into SQL\n\n\ncreate new data in db \u003e seeds.rb\n\n\nAfterward, run `rails db:seed`\n\n\nAfterward, go to terminal and type `rails console` and within there type `User.count` and `User.last` or `User.last.tags`. Then, update user model (user.rb) to include 'acts_as_taggable_on :tags' from the documentation. Afterward, within rails console can also type `reload!` if you've made changes to code and want to refresh. @user = User.last, Tag.all, Tag.all.pluck :name (to give just the names)\n\n\nrails console commands:\n`!` at the end overrides validations\n`a=Tag.find 5` sets a to the Tag with the id 5\n`a=_` the _ shortcut refers to the previous recent thing that was returned\n\n\n\n\n`rails generate migration add_city_to_users` to create a new migration file to update the users table \n\nUpdate the migration file:\nclass AddCityToUsers \u003c ActiveRecord::Migration[6.1]\n  def change\n    add_column :users, :city, :string\n  end\nend\n\n\n\n\n`rails db:migrate`\n\n\n\nWhenever you add a gem, you have to run `bundle` in the terminal afterward \n\n\n\n`git push heroku main` to deploy updates to heroku \n\n\n\n\u003c!-- `rails db:drop`\n`rails db:create`\n`rails db:migrate`\n`rails db:seed` --\u003e\n\n\n\n\n\n`rails server` to run app\n\n\n`rails console` to run commands\n`exit` or `exit!` to either exit or force exit out of console\n\n\n\n\nSpecial thanks to Horatio Thomas and Alan Haikal for being my engineering teammates on this hackathon project! Miami Hack Week, Aug 1-8, 2021.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrisha%2Fgravitate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrisha%2Fgravitate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrisha%2Fgravitate/lists"}