{"id":27968573,"url":"https://github.com/ging/etsit-erasmus","last_synced_at":"2025-05-07T21:04:37.044Z","repository":{"id":33878593,"uuid":"132465894","full_name":"ging/ETSIT-erasmus","owner":"ging","description":"Platform for managing incoming ERASMUS students at ETSIT UPM","archived":false,"fork":false,"pushed_at":"2025-04-25T08:28:17.000Z","size":8513,"stargazers_count":0,"open_issues_count":102,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-07T21:04:30.642Z","etag":null,"topics":["projects","upm"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/ging.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-07T13:39:07.000Z","updated_at":"2021-09-30T16:56:20.000Z","dependencies_parsed_at":"2024-05-31T06:42:24.830Z","dependency_job_id":"1a03c49c-1450-4608-804c-1b6bf032d837","html_url":"https://github.com/ging/ETSIT-erasmus","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/ging%2FETSIT-erasmus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2FETSIT-erasmus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2FETSIT-erasmus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2FETSIT-erasmus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ging","download_url":"https://codeload.github.com/ging/ETSIT-erasmus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954405,"owners_count":21830902,"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":["projects","upm"],"created_at":"2025-05-07T21:04:36.553Z","updated_at":"2025-05-07T21:04:37.021Z","avatar_url":"https://github.com/ging.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ETSIT-erasmus\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bccabf42125f4b20b005d05a68835527)](https://app.codacy.com/app/sonsoleslp/ETSIT-erasmus?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=ging/ETSIT-erasmus\u0026utm_campaign=Badge_Grade_Dashboard)\n\nApplication for managing the registration process of incoming students at ETSIT-UPM.\nCurrently working towards supporting the eIDAS specification.\n\n## Installation\nThis is a step-by-step guide on how to install the ETSIT-erasmus application from scratch. If you already have rails installed, you can skip the first part. There is a comprehensive guide for each one of the three main operating systems.\n\n### Ubuntu\n\n```bash\nsudo apt-get install git\n```\nInstall rbenv from https://github.com/rbenv/rbenv and ruby-build as plugin\n\n```\ngit clone https://github.com/rbenv/rbenv.git ~/.rbenv\necho 'export PATH=\"$HOME/.rbenv/bin:$PATH\"' \u003e\u003e ~/.bashrc\n~/.rbenv/bin/rbenv init\necho 'eval \"$(rbenv init -)\"' \u003e\u003e ~/.bashrc\n```\nReboot terminal\n```\nmkdir -p \"$(rbenv root)\"/plugins\ngit clone https://github.com/rbenv/ruby-build.git \"$(rbenv root)\"/plugins/ruby-build\n```\nReboot terminal\n```\nsudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev\nrbenv install 2.5.1\nrbenv use \n```\n\n```\ngem install bundler\nsudo apt-get install postgresql postgresql-contrib libpq-dev\nbundle install\n```\nCreate user and give ownership as in config/database.yml\n\n\n```\nsudo -u postgres psql (to enter in the postgreSQL console)  \nCREATE ROLE loguser WITH CREATEDB LOGIN PASSWORD 'password';\n```\nNow, execute the following command in the postgreSQL console to make your user superuser. This way, the 'loguser' user will have access rights to the databases.\n\n```\nALTER USER loguser WITH superuser;\n```\n\nAfterwards, we create the databases needed.\n\n```\nCREATE DATABASE logapp_dev OWNER loguser;\nCREATE DATABASE logapp_prod OWNER loguser;\nCREATE DATABASE logapp_test OWNER loguser;\n\\q (exit from postgreSQL console)\n```\n\n\n### Windows\n\nDownload ruby version 2.5.1 for your system in https://rubyinstaller.org/downloads/\n\nDownload postgres version 9.6 in https://www.postgresql.org/download/windows/\nConfigure new role as in database.yml\n\nInstall rails:\n```\ngem install rails -v 5.2.0\n```\nIn the instalation folder do:\n\n```\nbundle install\nbundle exec rake db:migrate\nrails s\n```\n\n### MacIntosh\n\n```bash\nbrew install git\n```\nInstall rbenv from https://github.com/rbenv/rbenv and ruby-build as plugin\n\n```\nbrew install rbenv\n~/.rbenv/bin/rbenv init\necho 'eval \"$(rbenv init -)\"' \u003e\u003e ~/.bashrc\nrbenv install 2.5.1\nrbenv global 2.5.1\n```\n\nReboot Terminal\n```\nbrew install postgres\ngem install bundler\nbundle install\n```\nCreate user and give ownership as in config/database.yml\n\n\n```\nsudo -u postgres psql (to enter in the postgreSQL console)  \nCREATE ROLE loguser WITH CREATEDB LOGIN PASSWORD 'password';\n```\nNow, execute the following command in the postgreSQL console to make your user superuser. This way, the 'loguser' user will have access rights to the databases.\n\n```\nALTER USER loguser WITH superuser;\n```\n\nAfterwards, we create the databases needed.\n\n```\nCREATE DATABASE logapp_dev OWNER loguser;\nCREATE DATABASE logapp_prod OWNER loguser;\nCREATE DATABASE logapp_test OWNER loguser;\n\n\\q (exit from postgreSQL console)\n```\n\n## Running the application\n\n**To purge database and recreate:**\n```\nrake db:drop db:create db:migrate db:populate\n```\n\n**Create an admin user:**\n\nUse this rake task in order to create an admin user to manage the incoming students\n```\nrake db:create_admin email=admin@myuniversity.org password=1234\n```\n\nThe following files are needed in order to run the project: \n- config/config.yml\n- config/secrets.yml\n- vendor/certs/key.pem\n- vendor/certs/cert.pem\n- vendor/saml2-node/eidas.json\n\n**To start rails:**\n```\nrails s\n```\nOpen browser on `http://localhost:3000/erasmus`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fging%2Fetsit-erasmus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fging%2Fetsit-erasmus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fging%2Fetsit-erasmus/lists"}