{"id":17823110,"url":"https://github.com/artofcode-/qpixel","last_synced_at":"2025-03-18T14:31:23.575Z","repository":{"id":8250644,"uuid":"56966090","full_name":"ArtOfCode-/qpixel","owner":"ArtOfCode-","description":"Q\u0026A-based community knowledge-sharing software. Mirror of codidact/qpixel. Active development is over there, go look there for up-to-date version.","archived":false,"fork":false,"pushed_at":"2023-03-08T20:22:52.000Z","size":6171,"stargazers_count":22,"open_issues_count":10,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T10:09:15.546Z","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":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArtOfCode-.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-24T10:32:25.000Z","updated_at":"2022-08-16T07:47:14.000Z","dependencies_parsed_at":"2024-10-27T18:20:22.168Z","dependency_job_id":"0f9b0742-09f0-4ece-b603-9bcee2ca398e","html_url":"https://github.com/ArtOfCode-/qpixel","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fqpixel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fqpixel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fqpixel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fqpixel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtOfCode-","download_url":"https://codeload.github.com/ArtOfCode-/qpixel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933431,"owners_count":20370986,"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":[],"created_at":"2024-10-27T17:51:05.419Z","updated_at":"2025-03-18T14:31:22.984Z","avatar_url":"https://github.com/ArtOfCode-.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QPixel [![CircleCI Build Status](https://circleci.com/gh/codidact/qpixel.svg?style=svg)](https://circleci.com/gh/codidact/qpixel) [![Coverage Status](https://coveralls.io/repos/github/codidact/qpixel/badge.svg)](https://coveralls.io/github/codidact/qpixel) [![DOI](https://zenodo.org/badge/237078806.svg)](https://zenodo.org/badge/latestdoi/237078806)\nRails-based version of our core software. Currently under active development towards MVP.\n\n## Installation\nThese instructions are assuming you already have a Unix environment available with Ruby and Bundler installed. WSL should work as well,\nbut Windows is unlikely to.\n\nIf you don't already have Ruby installed, use [RVM](https://rvm.io/) or [rbenv](https://github.com/rbenv/rbenv#installation) to install\nit before following these instructions.\n\n### Install prerequisites\n\nFor Linux:\n\n```\nsudo apt update\nsudo apt install gcc\nsudo apt install make\nsudo apt install libmysqlclient-dev\nsudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev\nsudo apt install mysql-server\n```\n\nFor Mac:\n\n```\nxcode-select --install\nbrew install mysql bison openssl mysql-client\nbundle config --global build.mysql2 --with-opt-dir=\"$(brew --prefix openssl)\"\n```\n\n### Install JS runtime\nIf you already have Node.JS installed, you can skip this step. If not, [download and install it](https://nodejs.org/en/download/).\n\n### Install Redis\nIf you haven't already got it, [download and install Redis](https://redis.io/download).\n\n### Install Imagemagick\n\nIf you haven't already installed Imagemagick, you'll need to [install it for\nyour system][0].\n\n### Download QPixel\nClone the repository and `cd` into the directory:\n\n    git clone https://github.com/codidact/qpixel\n    cd qpixel\n\n### Configure database connection\nIf you weren't asked to set the root MySQL user password during `mysql-server` installation, the installation is likely to be using\nUnix authentication instead. You'll need to sign into the MySQL server with `sudo mysql -u root` and create a new database user for QPixel:\n\n```sql\nCREATE USER qpixel@localhost IDENTIFIED BY 'choose_a_password_here';\nGRANT ALL ON qpixel_dev.* TO qpixel@localhost;\nGRANT ALL ON qpixel_test.* TO qpixel@localhost;\nGRANT ALL ON qpixel.* TO qpixel@localhost;\n```\n\nCopy `config/database.sample.yml` to `config/database.yml` and fill in the correct host, username, and password for your environment.\nIf you've followed these instructions (i.e. you have installed MySQL locally), the correct host is `localhost` or `127.0.0.1`.\n\nYou'll also need to fill in details for the Redis connection. If you've followed these instructions, the sample file should already\ncontain the correct values for you, but if you've customised your setup you'll need to correct them.\n\n### Set up QPixel\nInstall gems:\n\n    bundle install\n\nSet up the database:\n\n    rails db:create\n    rails db:schema:load\n    rails r db/scripts/create_tags_path_view.rb\n    rails db:migrate\n\n You'll need to create a Community record and purge the Rails cache before you can seed the database. In a Rails console (`rails c`), run:\n\n```ruby\nCommunity.create(name: 'Dev Community', host: 'localhost:3000')\nRails.cache.clear\n```\nThen seed the database:\n\n    $ rails db:seed\n    Category: Created 2, skipped 0\n    [...]\n\nRun the server!\n\n    rails s\n\n\nYou can create the first user account in the application, which should be running at http://localhost:3000/. To upgrade the user account\nto an admin account, run `rails c` for a console, followed by:\n\n```ruby\nUser.last.update(confirmed_at: DateTime.now, is_global_admin: true)\n```\n\n## Install with Docker\n\nSee the README.md in the [docker](docker) folder for complete instructions.\n\n## License\n[AGPL licensed](https://github.com/codidact/qpixel/blob/master/LICENSE).\n\n## Contributing\nContributions are welcome - please read the [CONTRIBUTING](https://github.com/codidact/qpixel/blob/develop/CONTRIBUTING.md) document\nbefore you start and look at the [TODO list](https://github.com/codidact/qpixel/wiki/TODO-list) for things to do.\n\n\n[0]: https://imagemagick.org/script/download.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartofcode-%2Fqpixel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartofcode-%2Fqpixel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartofcode-%2Fqpixel/lists"}