Before anything, you need the following software installed on your machine:
- Linux (based on Debian or Archlinux)
- If needed, the proxy should be configured
npm
php
7+ etphp-gd
mysql
5.6 or above
- Uncomment the following lines in /etc/php/php.ini :
extension=pdo_mysql.so
extension=gd
- Create the database
mysql -u root
CREATE DATABASE upont;
CREATE USER upont;
GRANT ALL ON upont.* TO 'upont'@'localhost' IDENTIFIED BY 'upont';
-
sudo npm install -g yarn
-
Install Composer
curl -sL https://getcomposer.org/installer | sudo -E php -- --install-dir=/usr/local/bin
sudo mv /usr/local/bin/composer.phar /usr/local/bin/composer
cp .env.dist .env
- Go to
front/
yarn
yarn start
to launch webpack dev server
- Go to
back/
composer install
bin/console doctrine:migration:migrate
to create the tablesbin/console doctrine:fixture:load
to load example databin/console server:run
to run symfony dev server
For your convenience, you can setup SSH keys with GitHub. Don't forget to update the Git remote:
git remote set-url origin [email protected]:KIClubinfo/upont