{"id":13819192,"url":"https://github.com/rubymonsters/rgbapp","last_synced_at":"2026-02-07T13:03:52.574Z","repository":{"id":16691329,"uuid":"80449544","full_name":"rubymonsters/rgbapp","owner":"rubymonsters","description":"This is an app that supports the work of the code curious organizers team","archived":false,"fork":false,"pushed_at":"2024-12-11T00:14:13.000Z","size":1867,"stargazers_count":2,"open_issues_count":39,"forks_count":4,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-05-16T04:36:11.448Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubymonsters.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2017-01-30T18:21:40.000Z","updated_at":"2020-11-26T16:10:27.000Z","dependencies_parsed_at":"2024-11-19T18:41:17.758Z","dependency_job_id":"2d1516be-18a2-474b-9414-cfdbf70230f9","html_url":"https://github.com/rubymonsters/rgbapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rubymonsters/rgbapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonsters%2Frgbapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonsters%2Frgbapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonsters%2Frgbapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonsters%2Frgbapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubymonsters","download_url":"https://codeload.github.com/rubymonsters/rgbapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubymonsters%2Frgbapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29194467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T12:38:28.597Z","status":"ssl_error","status_checked_at":"2026-02-07T12:38:23.888Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-08-04T08:00:41.990Z","updated_at":"2026-02-07T13:03:52.557Z","avatar_url":"https://github.com/rubymonsters.png","language":"Ruby","funding_links":[],"categories":["Happy Exploring 🤘"],"sub_categories":[],"readme":"# code curious application [![Build Status](https://travis-ci.org/rubymonsters/rgbapp.svg?branch=master)](https://travis-ci.org/rubymonsters/rgbapp)\n\n## About\n\nThis repo is the open source project for the **code curious app** that aims to help the [code curious orga team](http://codecurious.org) to organize their events by making the attendees, coaches and volunteers applications and/or participation more manageable.\n\n## Technical Requirements\n\n- Ruby '~\u003e 2.6.5'\n- Bundler\n- Ruby on Rails '~\u003e 5.2.x'\n- PostgreSQL '~\u003e 9.5.x'\n\n## How to set up\n\n1. Clone the repo (`git clone \u003crepo-url\u003e`)\n1. Change into the project directory (`cd cc-app`)\n1. Run `bundle install`. This can fail for a number of reasons. See below for some troubleshooting.\n1. Run `(bundle exec) rake db:create`. This will create the databases for `development` and `test` by default.\n1. Install imagemagick (e.g. `brew install imagemagick`)\n1. Run `(bundle exec) rails server`. This will start the application in development mode.\n1. Go to [`http://localhost:3000/`](http://localhost:3000/) in your browser. You should see a welcome screen saying *“Yay! You're on Rails”*\n\n## Database\n\n### 1. Installation\n\nFor the production database we use `Postgres` - make sure it is installed, configured and always running.\n\n#### Mac\n\nThe easiest way is to use [Postgres.app](http://postgresapp.com/). Don't forget to setup the [CLI tools](http://postgresapp.com/documentation/cli-tools.html).\n\n#### Linux\n\nIn Debian/Ubuntu you'll need the `postgresql` and `libpq-dev` packages.\n\n#### Windows\n\nTODO\n\n### 2. Migration\n\nList all available rake tasks of this project:\n\n```bash\n# List all rake tasks\n$ (bundle exec) rake -T\n\n# Filter rake tasks related to the database\n$ (bundle exec) rake -T | grep \"db\"\n```\n\nWe already have a database structure file [here](https://github.com/rubymonsters/rgbapp/blob/master/db/schema.rb), just load it into your freshly created `development` database and migrate to be synced with the current project status:\n\n```bash\n# Loads a schema.rb file into the database\n$ (bundle exec) rake db:schema:load\n\n# Migrate the database\n$ (bundle exec) rake db:migrate\n\n# Display status of migrations\n$ (bundle exec) rake db:migrate:status\n```\n\nTip: You may take a look at the short cut `$ (bundle exec) rake db:setup` in the rake tasks list.\n\n#### Important: Initial Data\n\nStart up the server, go to `http://localhost:3000/sign_up` and sign up as a new user. Then log into the rails console and assign yourself as an admin in order to create a new event.\n\n```bash\n# Log into the console\n$ (bundle exec) rails c\n\n# List all users\n\u003e\u003e users = User.all\n\n# Find your user account\n\u003e\u003e user = User.find_by(email: 'your_email@email.de')\n\n# Assign yourself as an admin\n\u003e\u003e user.admin = true\n\n# Check if your last commmand worked\n\u003e\u003e user.admin?\n# =\u003e true\n\n```\n\nSince the database is initially empty, you may encounter an error similar to the one below.\n\n**ERROR:**\n\n```\nActiveRecord::RecordNotFound in ApplicationsController#new \\\nCouldn't find Event with 'id'=1\n```\n\nExecute following in the rails console:\n```bash\n\n# List all events\n\u003e\u003e events = Event.all\n\n# Event Load (0.7ms)  SELECT \"events\".* FROM \"events\"\n# =\u003e #\u003cActiveRecord::Relation []\u003e\n\n# Create your first example event with a bang (\"!\") that validates your input immediately\n\u003e\u003e event = Event.create!(name: \"Beginners WS 2017\", place: \"Travis\", scheduled_at: \"2017-10-31\", application_start: \"2017-10-02\", application_end: \"2017-10-20\", confirmation_date: \"2017-10-25\")\n\n# =\u003e #\u003cEvent id: 1, name: \"Beginners WS 2017\", place: \"Travis\", scheduled_at: \"2017-10-31 00:00:00\", created_at: \"2017-10-02 00:00:00\", updated_at: \"2017-10-02 00:00:00\", application_start: \"2017-10-02 00:00:00\", application_end: \"2017-10-20 00:00:00\", confirmation_date: \"2017-10-25 00:00:00\"\u003e\n\n# List all events\n\u003e\u003e events = Event.all\n\n# Event Load (0.4ms)  SELECT \"events\".* FROM \"events\"\n# =\u003e #\u003cActiveRecord::Relation [#\u003cEvent id: 1, name: \"Beginners WS 2017\", place: \"Travis\", scheduled_at: \"2017-10-31 00:00:00\", created_at: \"2017-10-03 12:55:54\", updated_at: \"2017-10-03 12:55:54\", application_start: \"2017-10-02 00:00:00\", application_end: \"2017-10-20 00:00:00\", confirmation_date: \"2017-10-25 00:00:00\"\u003e]\u003e\n```\n\nNow start up the server with `$ (bundle exec) rails s` again and go to:\nhttp://localhost:3000/events/1/applications/new\n\nThe current production URL start page can be found here (this may change in the future):\nhttp://workshops.codecurious.org\n\n**Attention: You would need access to the production database and heroku app for production deployment. Ask the maintainers of this repository for the credentials.**\n\n\n## Good to know\n\n**Shell prompt**\n\nDependent on your shell the prompt symbol may be different than `$`, e.g. `% (bundle exec) rake -T`.\n\n**Specifying environment**\n\nWhen not specifying any environment (e.g. `RAILS_ENV=development`), then you will execute all your commands in development mode by default.\n\n**Server restart**\n\nIf you don't see any changes, e.g. after a migration, consider to restart the server and check again.\n\n## Troubleshooting\n\n**Cloning the repo fails with some message about SSH keys**\n\nUse the `https` url instead. There is a link to get it under the GitHub *“clone or download”* menu.\n\n**Installing gem `pg` fails**\n\nTODO\n\n**Running rake \u003coption\u003e fails**\n\nYou may see following error sometimes:\n\n```\nGem::LoadError: You have already activated rb-readline 0.5.5, but your Gemfile requires rb-readline 0.5.4. Prepending `bundle exec` to your command may solve this.`.\n```\nIf this is the case try `$ bundle update` and then run `$ bundle exec rake -T` instead of `rake -T`.\n\n## Deployment\n\n1. Make sure you have Heroku set up as a remote. If not enter `git remote add heroku https://git.heroku.com/rgbworkshopapplication.git`.\n1. Checkout `master` branch.\n1. Pull the latest changes.\n1. Push to Heroku using `git push heroku master`.\n1. If necessary, run migrations using `heroku run rails db:migrate`.\n\n## Contributing\n\nWelcome! We're happy that you will help us improve our app. Please let us know, if you have any questions.\n\n**Choose or open an issue**\n\nIf you want to contribute, feel free to assign yourself to an existing issue or open a new one.\n\n**Create your own branch**\n\n1. Clone the repository.\n1. `git checkout -b \u003cyour-name\u003e-\u003cfeature-name\u003e` to a new branch in your local repository.\n1. Make your changes.\n1. `git commit -m` 'Add commit message'\n1. `git push` to push your new branch to your GitHub repository.\n\nWhen you have made your changes and tested them, please send us a pull request for review.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubymonsters%2Frgbapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubymonsters%2Frgbapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubymonsters%2Frgbapp/lists"}