A simple website for the 13th birthday of Youthweb.
Build with Slim, Twig and Bootstrap.
- PHP >=5.6
- Composer
- npm
Create the file config/development/config.php
with this minimal configuration
<?php
return [
'settings' => [
'displayErrorDetails' => true,
'database' => [
'active' => 'default',
'default' => [
'type' => 'pdo',
'connection' => [
'dsn' => 'sqlite:'.ROOTPATH.'cache'.DS.'mydb.sq3',
'username' => '',
'password' => '',
'persistent' => false,
],
],
],
'youthweb_client' => [
'client_id' => '{client_id}',
'client_secret' => '{client_secret}',
'redirect_url' => 'https://example.com/callback_url',
],
],
];
Clone the repository or download and unzip the code into a folder. Run inside the folder:
php composer.phar install
npm install
npm run-script deploy
php cli doctrine:migrations:migrate
This installs all dependencies and creates the style.css
.
Now point apache/nginx to public/index.php
or use the PHP built in server:
php -S localhost:8080 -t public/
You can now access the website under http://localhost:8080
GPL3