P6 OC DA/PHP - Symfony
Develop the SnowTricks community site from A to Z
Getting Started
These instructions will get you a copy of the project up and running on your local machine if you want to test it or develop something on it.
Prerequisites
To make the project run you will need to install those things :
Installing
Follow those steps to make the projetc run on your machine
Clone the project :
git clone https://github.com/mathias73/SnowTricks.git
Update composer :
composer update
Install npm packages :
npm i
Database & DataFixtures
First you can load the database with this file : https://drive.google.com/file/d/1p_TW3rvatb1X-5ijMKLItliKB6cY-fIS/view?usp=sharing
You can edit .env with your database credentials :
DATABASE_URL="mysql://root:@127.0.0.1:3306/SnowTricks?serverVersion=5.7"
You can load some data into the database :
php bin/console doctrine:fixtures:load
For some test with the mail, I've used gmail.
First you need to create a account password here :
https://support.google.com/mail/answer/185833?hl=fr
And then you have to edit .env :
MAILER_DSN=gmail+smtp:/email:password@default
Or if you don't have gmail you can use an other one like here : https://symfony.com/doc/current/mailer.html
Admin account
With the database you have one admin account :
Pseudo : Mathias
Password : password
and one user account :
Pseudo : Paul
Password : password
Launch project
First you need to run :
npm run dev
Then, you can launch the project with this command :
symfony server:start
Built With
- Symfony - Framework PHP
- Twig - Template engine
- Tailwind - Framework CSS
- Fontawesome - Icon library
Versioning
For the versions available, see the tags on this repository.
Authors
- Mathias Micheli - Student - Github