mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
up flex config
This commit is contained in:
commit
1cfce01655
5
.gitignore
vendored
5
.gitignore
vendored
@ -30,7 +30,7 @@ public/main-es5.js
|
|||||||
public/polyfills-es2018.js
|
public/polyfills-es2018.js
|
||||||
public/polyfills-es5.js
|
public/polyfills-es5.js
|
||||||
public/scripts.js
|
public/scripts.js
|
||||||
public/styles.css
|
public/styles.cssup
|
||||||
public/*
|
public/*
|
||||||
|
|
||||||
###> symfony/phpunit-bridge ###
|
###> symfony/phpunit-bridge ###
|
||||||
@ -41,4 +41,5 @@ public/*
|
|||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
funky-framadate-front/*
|
funky-framadate-front/*
|
||||||
funky-framadate-front
|
funky-framadate-front
|
||||||
|
/funky-framadate-front/
|
||||||
|
18
README.md
18
README.md
@ -124,6 +124,18 @@ php bin/console doctrine:schema:validate
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Getting started
|
## 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
|
# Development
|
||||||
install dependencies with Composer
|
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
|
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
|
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.
|
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
|
## cronjob to delete expired polls
|
||||||
you can open your crontabl in command line with :
|
you can open your crontabl in command line with :
|
||||||
|
7701
composer.lock
generated
7701
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -24,6 +24,32 @@ cecho() {
|
|||||||
echo -e "$text"
|
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
|
cd funky-framadate-front
|
||||||
git reset --hard && git checkout $BRANCH && git pull
|
git reset --hard && git checkout $BRANCH && git pull
|
||||||
cd ..
|
cd ..
|
||||||
@ -72,7 +98,7 @@ COUNT_FILES=$(ls -larth ../public |wc -l)
|
|||||||
cd ..
|
cd ..
|
||||||
cecho b " $COUNT_FILES fichiers de build copiés dans /public"
|
cecho b " $COUNT_FILES fichiers de build copiés dans /public"
|
||||||
cecho g "##################################################################"
|
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
|
cd public
|
||||||
|
|
||||||
mv runtime* runtime.js
|
mv runtime* runtime.js
|
||||||
|
Loading…
Reference in New Issue
Block a user