{"id":18683569,"url":"https://github.com/scify/vote-collector","last_synced_at":"2025-06-17T08:06:58.329Z","repository":{"id":95197558,"uuid":"44805893","full_name":"scify/Vote-collector","owner":"scify","description":"A back-office application that allows an authorized user to define votings, participants and capture their answers in a user-friendly way.","archived":false,"fork":false,"pushed_at":"2016-02-11T14:33:12.000Z","size":654,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-18T17:14:30.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/scify.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}},"created_at":"2015-10-23T10:20:21.000Z","updated_at":"2016-02-11T12:30:26.000Z","dependencies_parsed_at":"2023-04-17T17:48:59.978Z","dependency_job_id":null,"html_url":"https://github.com/scify/Vote-collector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scify/Vote-collector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FVote-collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FVote-collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FVote-collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FVote-collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scify","download_url":"https://codeload.github.com/scify/Vote-collector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scify%2FVote-collector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260318706,"owners_count":22991120,"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-11-07T10:14:57.459Z","updated_at":"2025-06-17T08:06:58.298Z","avatar_url":"https://github.com/scify.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vote-collector\n\n### Starting the project\n\nFor installing Laravel, please refer to [Official Laravel installation\nguide](http://laravel.com/docs/5.0).\n\n### Installing dependencies (assuming apache as web server and mysql as db):\n\nIn a nutchell (assuming debian-based OS), first install the dependencies needed:\n\nNote: php5 package installs apache2 as a dependency so we have no need to add\nit manually.\n\n`% sudo aptitude install php5 php5-cli mcrypt php5-mcrypt mysql-server php5-mysql`\n\nInstall composer according to official instructions (link above) and move binary to ~/bin:\n\n`% curl -sS https://getcomposer.org/installer | php5 \u0026\u0026 mv composer.phar ~/bin`\n\nDownload Laravel installer via composer:\n\n`% composer global require \"laravel/installer=~1.1\"`\n\nAnd add ~/.composer/vendor/bin to your $PATH. Example:\n\n```\n% cat ~/.profile\n[..snip..]\nLARAVEL=/home/username/.composer/vendor\nPATH=$PATH:$LARAVEL/bin\n```\n\nAnd source your .profile with `% source ~/.profile`\n\nAfter cloning the project with a simple `git clone https://github.com/scify/Vote-collector.git`, type `cd Vote-collector \u0026\u0026 composer install` to install all dependencies.\n\n### Apache configuration:\n\n```\n% cat /etc/apache2/sites-available/mysite.conf\n\u003cVirtualHost *:80\u003e\n\tServerName myapp.localhost.com\n\tDocumentRoot \"/path/to/Vote-collector/public\"\n\t\u003cDirectory \"/path/to/Vote-collector/public\"\u003e\n\t\tAllowOverride all\n\t\u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\nMake the symbolic link:\n\n`% cd /etc/apache2/sites-enabled \u0026\u0026 sudo ln -s ../sites-available/mysite.conf`\n\nEnable mod_rewrite and restart apache:\n\n`% sudo a2enmod rewrite \u0026\u0026 sudo service apache2 restart`\n\nFix permissions for storage directory (web server must have write permissions. DO NOT use 777):\n\n`% chown -R :www-data /path/to/Vote-collector/storage \u0026\u0026 chmod -R 775 /path/to/Vote-collector/storage`\n\nTest your setup with:\n\n`% php artisan serve`\n\nand navigate to localhost:8000.\n\n\n### Nginx configuration:\n\nAdd additional the additional dependencies needed:\n\n`% sudo aptitude install nginx php5-fpm`\n\nDisable cgi.fix_pathinfo at /etc/php5/fpm/php.ini: `cgi.fix_pathinfo=0`\n\n`% sudo php5enmod mcrypt \u0026\u0026 sudo service php5-fpm restart`\n\nNginx server block:\n\n```\nserver {\n    listen 80 default_server;\n    listen [::]:80 default_server ipv6only=on;\n\n    root /path/to/Vote-collector/public;\n    index index.php index.html index.htm;\n\n    server_name server_domain_or_IP;\n\n    location / {\n        try_files $uri $uri/ /index.php?$query_string;\n    }\n\n    location ~ \\.php$ {\n        try_files $uri /index.php =404;\n        fastcgi_split_path_info ^(.+\\.php)(/.+)$;\n        fastcgi_pass unix:/var/run/php5-fpm.sock;\n        fastcgi_index index.php;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        include fastcgi_params;\n    }\n}\n```\n\n`% sudo service nginx restart \u0026\u0026 sudo chmod -R 755 path/to/Vote-collector/storage`\n\nAnd finally, set the group appropriately:\n\n`% sudo chown -R www-data:www-data storage`\n\n### Initialize database:\n\nInitialize the database with `php artisan migrate` and test the installation with `php artisan serve` and hit `localhost:8000/auth/register` at your browser of choice.\n\nAfter running migrations, it's time to seed the database.\n\nNavigate to the root directory and run `php artisan db:seed`. This seeds the database tables (code in /path/to/Vote-collector/database/seeds/).\n\nVerify login credentials by navigating at http://localhost/auth/login\n\n### Mail setup\n\nManual intervention required in this. You'll have to edit Vote-collector/config/mail.php and set the global \"From\" Address from:\n\n```\n'from' =\u003e ['address' =\u003e null, 'name' =\u003e null],\n```\n\nto\n\n```\n'from' =\u003e ['address' =\u003e 'myaddress@example.com', 'name' =\u003e 'My Name'],\n```\n\nConfigure your .env file appropriately:\n\n```\nMAIL_DRIVER=smtp\nMAIL_HOST=your.address\nMAIL_PORT=port_num\nMAIL_USERNAME=username\nMAIL_PASSWORD=password\n```\n\nExample for relay mail through Gmail:\n\n```\n# inside config/mail.php\n'from' =\u003e ['address' =\u003e 'myname@gmail.com', 'name' =\u003e 'My Name'],\n```\n\n```\n# inside .env\nMAIL_DRIVER=smtp\nMAIL_HOST=smtp.gmail.com\nMAIL_PORT=587\nMAIL_USERNAME=myname@gmail.com\nMAIL_PASSWORD=mypass\n```\n\n### Command scheduling\n\nIf you need to make a background job, you need to put the following in your crontab (edit with `crontab -e`.\nSomething like\n```\n% crontab -l\n0 1 * * * php /path/to/artisan schedule:run 1\u003e\u003e /dev/null 2\u003e\u00261\n```\nwill suffice.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscify%2Fvote-collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscify%2Fvote-collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscify%2Fvote-collector/lists"}