{"id":28231811,"url":"https://github.com/cryptedsnow/waste-collection","last_synced_at":"2026-04-13T00:43:08.148Z","repository":{"id":286785336,"uuid":"962287953","full_name":"CryptedSnow/waste-collection","owner":"CryptedSnow","description":"Web application using Filament (codes in Portuguese).","archived":false,"fork":false,"pushed_at":"2026-04-12T13:23:00.000Z","size":2636,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-13T00:43:04.514Z","etag":null,"topics":["docker","filament","mysql","postgresql"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/CryptedSnow.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-07T23:53:11.000Z","updated_at":"2026-04-12T13:23:08.000Z","dependencies_parsed_at":"2025-05-01T01:23:04.021Z","dependency_job_id":"ddaa65bf-4601-4310-9b47-40069b06b5eb","html_url":"https://github.com/CryptedSnow/waste-collection","commit_stats":null,"previous_names":["cryptedsnow/waste-collection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CryptedSnow/waste-collection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptedSnow%2Fwaste-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptedSnow%2Fwaste-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptedSnow%2Fwaste-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptedSnow%2Fwaste-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CryptedSnow","download_url":"https://codeload.github.com/CryptedSnow/waste-collection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CryptedSnow%2Fwaste-collection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31735541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"ssl_error","status_checked_at":"2026-04-12T22:18:33.088Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["docker","filament","mysql","postgresql"],"created_at":"2025-05-18T19:10:53.005Z","updated_at":"2026-04-13T00:43:08.133Z","avatar_url":"https://github.com/CryptedSnow.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Local machine\n\nFollow the steps to set the application on your local machine.\n\n1 - Run the ```composer install``` command to create ```vendor``` folder (Check the existence of `Composer` on your machine).\n```\ncomposer install \n```\n\n2 - Create ```.env``` file:\n```\ncp .env.example .env  \n```\n\n3 - Generate crypted key (Fill ```APP_KEY=``` to ```.env``` file):\n```\nphp artisan key:generate\n```\n\n4 - In `.env` file set the following snippet to connect the application to your database.\n```\n# MySQL\nDB_CONNECTION=mysql\nDB_HOST=127.0.0.1\nDB_PORT=3306\nDB_DATABASE=waste-collection\nDB_USERNAME=root\nDB_PASSWORD=\n\n# PostgreSQL\nDB_CONNECTION=pgsql\nDB_HOST=127.0.0.1\nDB_PORT=5432\nDB_DATABASE=waste-collection\nDB_USERNAME=postgres\nDB_PASSWORD=\n```\n\nBefore you perfomate the migrations, go to [notifications](https://github.com/CryptedSnow/waste-collection/blob/main/database/migrations/2024_11_30_113525_create_notifications_table.php) table to make a change in a specific line, it will avoid errors involving notifications and database.\n\n```\n# MySQL\n$table-\u003etext('data');\n\n# PostgreSQL\n$table-\u003ejson('data');\n```\n\n5 - Run the migrations.\n```\nphp artisan migrate\n```\n\nCase you want to use ```MySQL``` database, you can import this [file](https://github.com/CryptedSnow/waste-collection/tree/main/database/imports) (It's not necessary to use ```migrations``` and ```seeders```, don't do step 6 and 7, go ahead to step 8):\n\n6 - Use the commands to perfomate the Seeders:\n```\nphp artisan db:seed\n```\n\n7 - Run the following command to install JavaScript dependencies (Check the existence of `Node` and `NPM` on your machine).\n```\nnpm install\n```\n\n8 - Run the following command to compile and optimize JavaScript files for production.\n```\nnpm run build\n```\n\n9 - Run the following command to start Apache to run the application.\n```\nphp artisan serve\n```\n\n\u003ca id=\"laravel-spatie-info\"\u003e\u003c/a\u003e With help of **Laravel Spatie** and **Multi-tenancy**, exist two roles user: **Admin**, **User** and many companies. Making certains roles user has more privileges than others, it is very important you run the seeds to those users be created.\n\nPanels (Admin and User)\n- Admin: http://127.0.0.1:8000/admin/login\n- User: http://127.0.0.1:8000/user/login\n\n```\nName: Jonathan Joestar\nEmail: jonathan.joestar@email.com\nPassword: 12345678\nRole: Admin\nPermission: Many permissions\nCompanies: Scarlet Overdrive\n```\n\n```\nName: Dio Brando\nEmail: dio.brando@email.com\nPassword: 12345678\nRole: Admin, User\nPermission: Many permissions\nCompanies: Tusk, Ball Breaker, The World\n```\n\n```\nName: Johnny Joestar\nEmail: johnny.joestar@email.com\nPassword: 12345678\nRole: User\nPermission: Many permissions\nCompanies: Tusk\n```\n\n```\nName: Gyro Zeppeli\nEmail: gyro.zeppeli@email.com\nPassword: 12345678\nRole: User\nPermission: Many permissions\nCompanies: Ball Breaker\n```\n\n```\nName: Diego Brando\nEmail: diego.brando@email.com\nPassword: 12345678\nRole: User\nPermission: Many permissions\nCompanies: The World\n```\n\n## Docker environment\n\nBefore run containers, you can choose PHP version of your preference (```8.0```,```8.1```,```8.2```,```8.3```,```8.4```). In ```docker-compose.yml``` to ```context```  change the version:\n\n```\n// Example: Change version to 8.0 \ncontext: ./docker/version\n```\n\n1 - Power on the containers:\n```\ndocker-compose up -d\n```\n\n2 - Run the ```composer install``` command to create ```vendor``` folder:\n```\ndocker-compose exec app composer install\n```\n\n3 - Create ```.env``` file:\n```\ndocker-compose exec app cp .env.example .env  \n```\n\n4 - Generate crypted key (Fill ```APP_KEY=``` to ```.env``` file):\n```\ndocker-compose exec app php artisan key:generate\n```\n\nYou can't maintain two databases working at same time, it's necessary choose.\n```\n# Avoid conflict to mysql phpmyadmin\ndocker-compose stop pgsql pgadmin\n\n# Avoid conflict to pgsql pgadmin\ndocker-compose stop mysql phpmyadmin\n```\n\nRemember, before you change of database, run ```docker-compose down```, modify the ```.env``` file snippet to connect the application to database container and run ```docker-compose up -d``` again.\n\n5 - In ```.env``` file set the following snippet to connect the application to database container from **Docker**:\n```\n# MySQL\nDB_CONNECTION=mysql\nDB_HOST=mysql\nDB_PORT=3306\nDB_DATABASE=waste-collection\nDB_USERNAME=user\nDB_PASSWORD=password\n\n# PostgreSQL\nDB_CONNECTION=pgsql\nDB_HOST=pgsql\nDB_PORT=5432\nDB_DATABASE=waste-collection\nDB_USERNAME=postgres\nDB_PASSWORD=secret\n```\n\nBefore you perfomate the migrations, go to [notifications](https://github.com/CryptedSnow/waste-collection/blob/main/database/migrations/2024_11_30_113525_create_notifications_table.php) table to make a change in a specific line, it will avoid errors involving notifications and database.\n\n```\n# MySQL\n$table-\u003etext('data');\n\n# PostgreSQL\n$table-\u003ejson('data');\n```\n\nCase you want to use ```MySQL``` database, you can import this [file](https://github.com/CryptedSnow/waste-collection/tree/main/database/imports) (It is not necessary use ```migrations``` and ```seeders```, don't do step 6 and 7, go ahead to step 8):\n\n6 - To performate the migrations, you need use the command:\n```\ndocker-compose exec app php artisan migrate\n```\n\n7 - Use the commands to perfomate the Seeders:\n```\ndocker-compose exec app php artisan db:seed\n```\n\n8 - Run the following command to install Javascript dependencies.\n```\ndocker-compose exec app npm install\n```\n\n9 - Run the following command to compile and optimize JavaScript files for production.\n```\ndocker-compose exec app npm run build\n```\n\n10 - To power off the containers before exit from application, use the command:\n\n```\ndocker-compose down\n```\n\nThe user credentials are the same, panels to Admin and User also, click \u003ca href=\"#laravel-spatie-info\"\u003ehere\u003c/a\u003e to see.\n\n### Docker environment addresses\n- phpMyAdmin: http://localhost:8081\n- pgAdmin: http://localhost:5050\n    - User: `admin@admin.com`\n    - Password: `admin`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptedsnow%2Fwaste-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptedsnow%2Fwaste-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptedsnow%2Fwaste-collection/lists"}