MA
magiruuvelvet/webshop-sample
Just a simple Symfony project for educational purposes
Sample Webshop
Sample project to get started with the Symfony
web framework for an upcoming project. Repository is public for
educational purposes. Feel free to use it.
Disclaimer: The API of this litte educational project is intentionally
insecure to keep it simple. My next project won't include an API anyway.
Requirements
- PHP 7.2.5 or higher (PHP 7.3+ recommended)
- PHP Composer
- MariaDB (recommended) or MySQL
- Node.js and npm (for building the assets)
- PHP Module:
ctype - PHP Module:
iconv - PHP Module:
gmp - PHP Module:
mbstring
Installation (Production Mode)
- Clone this repository
- Create a
../data(outside of project source) directory and make sure it is
writable by the web server - Run
composer install --no-dev --optimize-autoloaderto install the dependencies - Run
npm run buildto build the assets - Point your PHP-enabled web server to the
publicdirectory
Database
- Character set:
utf8mb4 - Collation:
utf8mb4_unicode_ci
Development
Prepare Environment
composer installnpm install- Create
.env.dev.localwith aDATABASE_URL(see example in.env)
Frontend assets
npm run watch
Unit Tests
bin/phpunit
On this page
Languages
PHP93.4%HTML4.5%CSS2.1%
Contributors
BSD 2-Clause "Simplified" License
Created March 31, 2020
Updated April 3, 2020