TeamBuilder is a PHP application for the module PRW-1.
| Tools | Version |
|---|---|
| Composer | 2.1.6 |
| Npm | 7.20.3 |
| Sass | 1.39.0 |
git clone https://github.com/yannickcpnv/teambuilder.git
composer installIn the folder sql, you will find some scripts, run create_teambuilder_and_inserts.sql to create the database
teambuilder and insert data.
Use an existing user or create a new one
CREATE USER 'user_name'@'localhost' IDENTIFIED BY 'user_password';
GRANT ALL ON `dbname`.* TO 'user_name'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;- In the config folger youcan find a .example.env file, rename it to .env.
- Use your personal variables. The first 4 variables are not used directly in the project, there are here to be used in
the variable
DB_DSN.DB_SQL_DRIVER = mysql DB_HOSTNAME = localhost DB_PORT = 3306 DB_CHARSET = utf8 DB_NAME = dbname DB_USER_NAME = username DB_USER_PWD = password DB_DSN = ${DB_SQL_DRIVER}:host=${DB_HOSTNAME};dbname=${DB_NAME};port=${DB_PORT};charset=${DB_CHARSET} WEB_USER_ID = 0
- Enable php extensions in your php.ini :
- ext-pdo => Database access
- ext-intl => Internationalization, sort and compare utf8 strings, etc.
- If you work on the file override_pico.scss, run the command
composer sass:pico:watch
composer test