Objectif : Développer un blog avec une architecture MVC, et la mise en place des bonnes pratiques.
The following demo admin user is available to test the web application:
- Username : demo
- Password : demo_password
git clone git@github.com:acecconato/AnthonyCecconato_5_18102021.git anthonycecconato
cd anthonycecconato
Install composer and node dependencies with yarn (default)
make install
Available parameters:
PACKAGE_MANAGER
,PACKAGE_MANAGER_LOCK_FILE
E.g: With npm instead of yarn
make install PACKAGE_MANAGER=npm
Configure the environment
make prepare DB_HOST=localhost DB_NAME=anthonyc5 DB_USER=root DB_PASSWORD=root
Available parameters:
MAILER_SENDER
You can configure the .env file manually if required.
Prepare
make prepare DB_USER=root DB_PASSWORD=root DB_NAME=anthonyc5
Start the webapp with
make run
git clone git@github.com:acecconato/AnthonyCecconato_5_18102021.git anthonycecconato
cd anthonycecconato
composer install --no-dev --optimize-autoloader
npm install
oryarn install
cp .env.example .env
Then update the file as your needs. You must fill the database connection informations.
You will need a MySQL or Mariadb database ready to receive the database import. When it's done, do the following:
mysql -u username -p dbname < sql/structure.sql
php ./src/Fixture/generate.php
yarn build
php -S localhost:8001 -t public
To test the sending of the emails, you can install maildev : https://github.com/maildev/maildev.
Then you will need to update the .env file to edit the DSN and the SENDER values.