{"id":20134339,"url":"https://github.com/modernistik/parse-stack-example","last_synced_at":"2025-03-02T22:27:22.662Z","repository":{"id":136253979,"uuid":"68268340","full_name":"modernistik/parse-stack-example","owner":"modernistik","description":"An example of a simple Parse-Stack Rack application","archived":false,"fork":false,"pushed_at":"2020-07-23T05:14:29.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T09:26:08.563Z","etag":null,"topics":["parse-server","rack","ruby"],"latest_commit_sha":null,"homepage":null,"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/modernistik.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":"2016-09-15T05:16:12.000Z","updated_at":"2021-10-31T16:07:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab981cf0-c66b-4ffc-b265-6729ac4cdf02","html_url":"https://github.com/modernistik/parse-stack-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernistik%2Fparse-stack-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernistik%2Fparse-stack-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernistik%2Fparse-stack-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernistik%2Fparse-stack-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modernistik","download_url":"https://codeload.github.com/modernistik/parse-stack-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241580671,"owners_count":19985588,"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":["parse-server","rack","ruby"],"created_at":"2024-11-13T21:09:13.217Z","updated_at":"2025-03-02T22:27:22.653Z","avatar_url":"https://github.com/modernistik.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Parse Server with Ruby Rack Example\nThis is a sample application to showcase using the ruby [Parse-Stack](https://github.com/modernistik/parse-stack) gem with [Parse-Server](https://github.com/ParsePlatform/parse-server).\n\n## Getting Started\nMake sure you have your API keys for your Parse-Server handy. To get started, clone this repo and run the bundle command.\n\n    $ bundle install\n    $ rake setup\n\nEdit the `config/parse.rb` file so that it is configured with your Parse-Server API keys. You may optionally use a `.env` file that will be loaded into your `ENV`.\n\n```\n# in .env\nPARSE_APP_ID=\u003cYOUR_APP_ID\u003e\nPARSE_API_KEY=\u003cYOUR_API_ID\u003e\nPARSE_MASTER_KEY=\u003cYOUR_MASTER_KEY\u003e\nPARSE_SERVER_URL=http://localhost:1337/parse\n# Below is the accessible URL for this Rack server\n# When running locally, it is localhost:3000\nHOOKS_URL=\u003chttp://localhost:3000/\u003e\n```\n\n### Upgrade Your Schema\nWe have added some sample models and webhooks in this example application for you to play around. **We recommend you run this example with an new Parse application.**\n\n    $ rake parse:upgrade\n\nThe above should create and update the classes that are defined in the `models` directory with your Parse-Server and upgrade your database schema.\n\n## Playground\nNow you are ready to go! Try running the `rake console` command and perform a few queries.\n\n    $ rake console\n\n```ruby\n    franky = Artist.first_or_create({name: \"Frank Sinatra\"})\n    franky.save\n\n    song = Song.first_or_create(name: \"Fly Me to the Moon\")\n    song.released = 1964\n    song.genres = ['jazz','big band']\n    song.artist = franky\n    song.save\n\n    Song.count :released.before =\u003e 1965\n    Song.first :artist =\u003e franky\n```\n\n\n## Run Webhooks Server\nYou can have this rack application handle incoming Parse webhooks based on what you have defined in the `webhooks` folder. Make sure you already have a Parse-Server running. To start this server use:\n\n```bash\n    # Register webhooks\n    $ rake parse:webhooks:register\n    # Start the server\n    $ rake start\n```\n\nThis will start the rack server and begin handling requests from your Parse-Server. You can automatically have Parse-Stack register your defined webhooks with your Parse-Server with the task `rake parse:webhooks:register` after you have defined a valid `HOOKS_URL` environment variable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodernistik%2Fparse-stack-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodernistik%2Fparse-stack-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodernistik%2Fparse-stack-example/lists"}