Skip to content
Snippets Groups Projects
Commit 50f0161a authored by SERRIER Matheo's avatar SERRIER Matheo
Browse files

refactoring

parent ed85f517
No related branches found
No related tags found
No related merge requests found
Showing with 60 additions and 2 deletions
.env 0 → 100644
MYSQL_ROOT_PASSWORD=r00tracoin
MYSQL_USER=racoin
MYSQL_PASSWORD=racoin
MYSQL_DATABASE=racoin
{ {
"require": { "require": {
"slim/slim": "2.*", "slim/slim": "3.*",
"twig/twig": "~1.0", "twig/twig": "~1.0",
"illuminate/database": "4.2.9" "illuminate/database": "4.2.9"
}, },
......
...@@ -10,7 +10,7 @@ class connection { ...@@ -10,7 +10,7 @@ class connection {
public static function createConn() { public static function createConn() {
$capsule = new DB; $capsule = new DB;
$capsule->addConnection(parse_ini_file("./config/config.ini")); $capsule->addConnection(parse_ini_file("../config/config.ini"));
$capsule->setAsGlobal(); $capsule->setAsGlobal();
$capsule->bootEloquent(); $capsule->bootEloquent();
} }
......
version: '3'
networks:
racoin.net:
driver: bridge
services:
#
# service administration des bases sql
#
adminer:
image: adminer
command: php -S 0.0.0.0:8080 -t /var/www/html
ports:
- '8081:8080' ## 40510
networks:
- racoin.net
db:
image: 'mariadb:latest'
command: '--default-authentication-plugin=mysql_native_password --character-set-server=utf8 --collation-server=utf8_general_ci'
env_file: .env
ports:
- '3309:3306' ## 40508
networks:
- racoin.net
volumes:
- ./db/sql:/var/sql
php:
image: 'canals/php:7.4'
restart: always
env_file: .env
ports:
- '80:80'
volumes:
- ./public:/var/www/html
- ./:/var/www
working_dir: /var/www/
networks:
- racoin.net
depends_on:
- db
\ No newline at end of file
notes.md 0 → 100644
## Langage : php, js, css, html
## framework : symfony, slim + twig
## But générale : application de petites annonces et de ventes en ligne (leboncoin)
## Faire fonctionner l'application :
### - installer les dépendances via composer
### - créer et remplir le fichier ./config/config.ini pour lier l'appliction à la bd
## Mode d'emploi :
## Dépendances non maintenu :
### - Carbon 1 à migrer vers Carbon 2
### - upgrade slim
\ No newline at end of file
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment