{"id":15288742,"url":"https://github.com/unicraftnetwork/website","last_synced_at":"2025-10-07T03:30:43.134Z","repository":{"id":40013574,"uuid":"257810808","full_name":"UnicraftNetwork/Website","owner":"UnicraftNetwork","description":"The website for the Unicraft Network","archived":true,"fork":false,"pushed_at":"2022-11-21T00:01:34.000Z","size":8784,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T12:33:21.873Z","etag":null,"topics":["rails6","ruby"],"latest_commit_sha":null,"homepage":"https://unicraft.cl/","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/UnicraftNetwork.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":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2020-04-22T06:23:04.000Z","updated_at":"2022-11-22T08:58:01.000Z","dependencies_parsed_at":"2022-07-26T19:45:08.536Z","dependency_job_id":null,"html_url":"https://github.com/UnicraftNetwork/Website","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/UnicraftNetwork/Website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicraftNetwork%2FWebsite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicraftNetwork%2FWebsite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicraftNetwork%2FWebsite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicraftNetwork%2FWebsite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnicraftNetwork","download_url":"https://codeload.github.com/UnicraftNetwork/Website/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicraftNetwork%2FWebsite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278715508,"owners_count":26033296,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":["rails6","ruby"],"created_at":"2024-09-30T15:52:48.348Z","updated_at":"2025-10-07T03:30:42.485Z","avatar_url":"https://github.com/UnicraftNetwork.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Website\n---\n\n**NOTE**: This repository is no longer maintained. It has been publicly archived to serve as a public resource.\n\nThis is the code that powers the website and backend services of the Unicraft Network, the Minecraft server home of many Chilean universities, in alliance with ElMedievo.\n\nInstall the following services and configure them to run on their default ports:\n  * [Ruby 2.6.6](https://www.ruby-lang.org/en/).\n      * Windows: [Ruby Installer](https://rubyinstaller.org/downloads/) is recommended. Default options should do fine.\n      * OS X: [RVM](http://rvm.io) is recommended over the default OS X Ruby. Here's a one-liner: `\\curl -sSL https://get.rvm.io | bash -s stable --ruby`.\n  * [MySQL 14.14](https://www.mysql.com/) or later.\n  * [NodeJS 10.20.1](https://linuxize.com/post/how-to-install-node-js-on-ubuntu-18.04/) or later.\n  * [Yarn 1.22.4](https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/) or later. Website was built using rails version 6.0.2.2, so you will require Yarn for webpacker to function properly.\n\nEnsure bundler is installed: `gem install bundle`.\n\nRun `bundle install` to download and install dependencies.\n\n* If installing the mysql2 gem through bundler gives you problems, consider installing libmysqlclient-dev using the following shell command:\n  * `sudo apt-get install libmysqlclient-dev` and then run `bundle install` again.\n\n## Database setup\n  Start MySQL with default settings.\n  \n  Then, create a `database.yml` file wtihin the [`config/`](https://github.com/ElMedievo-UdeC/Website/tree/master/config) directory, with the following content in it:\n\n```\ndefault: \u0026default\nadapter: mysql2\nencoding: utf8\nusername: MYSQL USERNAME\npassword: USER PASSWORD\nhost: 127.0.0.1\nport: 3306\n\ndevelopment:\n  \u003c\u003c: *default\n  database: web_development\n\n# Warning: The database defined as \"test\" will be erased and\n# re-generated from your development database when you run \"rake\".\n# Do not set this db to the same as development or production.\ntest:\n  \u003c\u003c: *default\n  database: web_test\n\nproduction:\n  \u003c\u003c: *default\n  database: web_development\n```\n\nReplace `MYSQL USERNAME` and `USER PASSWORD` for the corresponding MySQL credentials on your end. \n  \nRun the following shell commands from within the Website repo, in order to create the database \u0026 complete its migration:\n\n    rake db:create db:migrate\n    RAILS_ENV=production rake db:create db:migrate db:seed\n\n## Environment Variables\n\nIn production, the environment variable\n[ENV['MAIL_PASSWORD']](https://github.com/ElMedievo-UdeC/Website/blob/9c08862718b5ab2cce15dcfec0a8240833d5985b/config/environments/production.rb#L69)\nis to be defined, as it is the password to the support email which ActionMailer will use to send confirmations, recovery tokens, notifications, etc. via email.\n\n## Rails Environments\n\nRun the following shell commands from the Website repo to start all the backend services in the different environments.\n\n### Development\n\n    rails server -b 0.0.0.0 -p 80 -e development\n\n### Production\n\n    rake secret\n    export SECRET_KEY_BASE=output-of-rake-secret\n    rake assets:precompile RAILS_ENV=production\n    rails server -b 0.0.0.0 -p 80 -e production\n    \nIn case you would like to destroy users who have failed their email verification by exceeding devise's tolerance threshold, you will need to let the following users rake task running:\n\n    rake ucn:users\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicraftnetwork%2Fwebsite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicraftnetwork%2Fwebsite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicraftnetwork%2Fwebsite/lists"}