OpenClassRooms 6th Project
Build a community website with Symfony
- A Web Server (Apache, Nginx...)
- Php 7.3
- Composer
- Yarn (
npm install -g yarn
) - A Database engine (Mysql, PostgreSQL...)
- SMTP server accessible from the machine hosting the site
- clone or download the project
- go to project folder in a terminal
- type
composer install
- type
yarn install
- type
yarn encore production
oryarn encore dev
for development build - copy
.env
to.env.local
and edit sql and mail parameters - configure a new Virtual host in your web server configuration with
public/
folder as DocumentRoot
Now set the database :
php bin/console doctrine:database:create
php bin/console make:migration
php bin/console doctrine:migrations:migrate
- To start with no data :
php bin/console doctrine:fixtures:load --group=starting_users
- You can add samples data :
php bin/console doctrine:fixtures:load --group=samples_data
By default, you can log as admin with :
Admin@snowtricks / Password
at url /_sntrks_admin/
Samples data come with 2 additional users, both use Password
as password :
- john@snowtricks, a verified user, author of the 10 tricks
- user1@snowtricks, a new unverified user