diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..808abc7 --- /dev/null +++ b/.env.example @@ -0,0 +1,13 @@ +# DATABASE CONFIGURATION + +# Soon: +# DRIVER=pdo +# ENGINE=mariadb + +DB_HOST=localhost +DB_PORT=3306 +DB_USER= +DB_PASSWORD= +DB_NAME= +DB_CHARSET=utf8mb4 +DB_COLLATION=utf8mb4_unicode_ci \ No newline at end of file diff --git a/index.php b/public/index.php similarity index 92% rename from index.php rename to public/index.php index 7b03fc4..908dacc 100644 --- a/index.php +++ b/public/index.php @@ -6,7 +6,7 @@ use DI\Container; use Controllers\HomeFrontController; use Slim\Handlers\Strategies\RequestResponseArgs; -require_once __DIR__ . '/vendor/autoload.php'; +require_once __DIR__ . '/../vendor/autoload.php'; $container = new Container(); $app = Bridge::create($container);