{"id":15385963,"url":"https://github.com/alstonchan/php-commerce","last_synced_at":"2025-10-12T19:16:18.424Z","repository":{"id":123994560,"uuid":"589517265","full_name":"AlstonChan/PHP-Commerce","owner":"AlstonChan","description":"A basic e-commerce site built using PHP, Alpine.js and Tailwind CSS containerized with Docker","archived":false,"fork":false,"pushed_at":"2023-11-12T09:41:20.000Z","size":704,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T19:16:18.086Z","etag":null,"topics":["alpinejs","apache2-docker","daisyui","docker","docker-compose","e-commerce-project","php-fpm","php8","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlstonChan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-01-16T10:01:47.000Z","updated_at":"2024-08-23T01:24:34.000Z","dependencies_parsed_at":"2023-11-12T04:21:35.797Z","dependency_job_id":"3f7d8f0a-7898-40a1-aa75-0f05ed214b7e","html_url":"https://github.com/AlstonChan/PHP-Commerce","commit_stats":null,"previous_names":["alstonchan/php-commerce"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlstonChan/PHP-Commerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2FPHP-Commerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2FPHP-Commerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2FPHP-Commerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2FPHP-Commerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlstonChan","download_url":"https://codeload.github.com/AlstonChan/PHP-Commerce/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlstonChan%2FPHP-Commerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012645,"owners_count":26085158,"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-12T02:00:06.719Z","response_time":53,"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":["alpinejs","apache2-docker","daisyui","docker","docker-compose","e-commerce-project","php-fpm","php8","tailwindcss"],"created_at":"2024-10-01T14:46:51.400Z","updated_at":"2025-10-12T19:16:18.406Z","avatar_url":"https://github.com/AlstonChan.png","language":"PHP","readme":"# Basic-E-Commerce\n\nA basic e-commerce site built using PHP, Alpine.js and Tailwind CSS.\n\n## Prerequisite\n\n- Have Docker installed\n- Have Docker Compose installed\n- Have NodeJs and NPM installed (optional but preferred)\n- Have Composer installed (optional but preferred)\n\n## Getting Started\n\n1. Clone the repository to your local machine:\n\n    ```bash\n    git clone https://github.com/AlstonChan/Basic-E-Commerce\n    ```\n\n2. Then run the docker commands to spin up the container.\n\n    ```bash\n    docker-compose up -d\n    ```\n\n3. Next you need to install required npm packages and composer packages, populate env file then build CSS output file.\n\n    If you do not have either `composer` or `npm` installed on your machine, you may use these tools in the container rather than having to download the tools. If you already have these tools install, you may skip the first *3* steps instead, unless your version of downloads output error when executing.\n\n    1. Enter the container bash by using `exec` command\n\n        ```bash\n        docker exec -it commerce-php8.2 bash\n        ```\n\n    2. Next, change directory (cd) to where all the files are mounted to the container\n\n        ```bash\n        cd /var/www/default\n        ```\n\n    3. To confirm you are in the correct directory:\n        - Enter `pwd` should return `/var/www/default`\n        - Enter `ls -al` should list all the file you just clone\n\n    4. Install `npm` packages and build CSS file. Here we build the css in watch mode, intended for development only, for more options, look at the **NPM Options** section.\n\n        ```bash\n        npm install\n        npm run css:dev\n        ```\n\n    5. Install `composer` packages\n\n        ```bash\n        composer install\n        ```\n\n    6. Populate env file:\n\n        ```env\n        cp .env.sample .env\n        ```\n\n4. Navigate to \u003chttp://localhost:3000\u003e to visit the page or visit \u003chttp://localhost:3001\u003e for **`phpmyadmin`** page.\n\n## NPM Options\n\n1. **`npm run css:dev`** : Compile tailwind css in watch mode, updating the css on save, do not minify the css, suitable for development.\n2. **`npm run css:prod`** : Compile tailwind css once and minify the css, suitable for production.\n\n## Additional Configuration File\n\n### httpd.conf\n\nThe configuration file for apache2.4\n\n### php.ini\n\nThe configuration file for php 8.2\n\n### .jsbeautifyrc\n\nThe configuration file for vscode extension **PHP Intelephense**, works with the extension to provide further code formatting capabilities. The full configuration can be found on [beautify GitHub](https://github.com/beautify-web/js-beautify#css--html).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falstonchan%2Fphp-commerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falstonchan%2Fphp-commerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falstonchan%2Fphp-commerce/lists"}