Cette application gère une salle de sport
# Prérequis :
docker
On utilise un webmail avec l'image schickling/mailcatcher
docker compose up -d
# Installation
composer require bootstrap@next
composer require encore -- Install webpack encore to manage js and css files
# Version 1
Utilisation du template de startBootstrap : sd-admin-2
Disponible ici https://github.com/StartBootstrap/startbootstrap-sb-admin-2.git
# Version 2
Utilisation du template adminLte :
Disponible ici https://github.com/ColorlibHQ/AdminLTE/releases
composer install -- to install all dependencies
docker compose up -d ou docker compose up -d
symfony console make:migration
symfony console doctrine:migrations:migrate -- to create the database schemes
symfony console doctrine:fixtures:load -- load fake data (optional)
npm install -- to install dependencies
npm run build -- to build the js and css scripts
symfony server:start -d
heroku login
heroku create app_name
heroku config:set APP_ENV=prod -- change the environnement
heroku config:set APP_SECRET=$(php -r 'echo bin2hex(random_bytes(16));')
heroku addons:create heroku-postgresql:hobby-dev -- install postgresql addon
heroku buildpacks:add --index 1 heroku/nodejs
heroku config:set USE_NPM_INSTALL=true
#composer.json
"compile": [
"php bin/console doctrine:migrations:migrate"
]
#package.json
"heroku-postbuild": "encore production --progress"
"engines": {
"npm": "6.x"
}
Add a Profile file
release: php bin/console cache:clear && php bin/console cache:warmup
web: heroku-php-apache2 public/
# install apache pack to manage internal links