up flex config

master
Tykayn 2023-01-16 15:15:14 +00:00 committed by TyKayn
commit 1cfce01655
4 changed files with 48 additions and 7704 deletions

5
.gitignore vendored
View File

@ -30,7 +30,7 @@ public/main-es5.js
public/polyfills-es2018.js
public/polyfills-es5.js
public/scripts.js
public/styles.css
public/styles.cssup
public/*
###> symfony/phpunit-bridge ###
@ -41,4 +41,5 @@ public/*
node_modules
funky-framadate-front/*
funky-framadate-front
funky-framadate-front
/funky-framadate-front/

View File

@ -124,6 +124,18 @@ php bin/console doctrine:schema:validate
```
## Getting started
Have the right dependencies, a domain name, and run the install script.
### Dependencies
* PHP 8+
* symfony CLI tool
* composer, the PHP dependencies manager
* a database like Mysql
* a proper .env file
### run scripts
```bash
bash update.sh
symfony serve # to start the API on https://localhost:8000
```
# Development
install dependencies with Composer
@ -172,6 +184,12 @@ set a virtual host on your server, configure CORS access to have the API to work
configure database access in a .env.local file , replace variables
DATABASE_URL=mysql://database_user:db_user_password@127.0.0.1:3306/database_name
this file is not versionned and should stay like this.
## Setup the default funky frontend
Use the scripts to get the framadate funky frontend and update it
```bash
bash front_update.sh
```
If you wish to develop things for the frontend, do not rebuild it each time, use a live server in the funky-framadate-front folder.
## cronjob to delete expired polls
you can open your crontabl in command line with :

7701
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -24,6 +24,32 @@ cecho() {
echo -e "$text"
}
# vérifs prérequis
if [ ! type nvm &> /dev/null ]; then
cecho red " ❌ la commande nvm est introuvable"
exit 1
fi
cecho g " ✅ nvm"
if [ ! type node &> /dev/null ]; then
cecho red " ❌ la commande node est introuvable"
exit 1
fi
cecho g " ✅ node"
if [ ! type git &> /dev/null ]; then
cecho red " ❌ la commande git est introuvable"
exit 1
fi
cecho g " ✅ git"
if [ ! type yarn &> /dev/null ]; then
cecho red " ❌ la commande yarn est introuvable"
exit 1
fi
cecho g " ✅ yarn"
# use node version 16
nvm use 16
cd funky-framadate-front
git reset --hard && git checkout $BRANCH && git pull
cd ..
@ -72,7 +98,7 @@ COUNT_FILES=$(ls -larth ../public |wc -l)
cd ..
cecho b " $COUNT_FILES fichiers de build copiés dans /public"
cecho g "##################################################################"
cecho b " renaming unieque name of JS chunks to common names for templates "
cecho b " renaming unique name of JS chunks to common names for templates "
cd public
mv runtime* runtime.js