Skip to content

Platform for the student mentorship project Academic Brother

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE_symfony
Notifications You must be signed in to change notification settings

aursulis/academicbrother2

Repository files navigation

academicbrother2

  1. Prerequisites

>= PHP 5.4.11
MySQL
php5-mysql
php5-intl
nodejs (with symlink to /usr/bin/node)
LESS (installed through npm)
  1. Installation

  1. Clone the repository:

     $ git clone https://github.com/aursulis/academicbrother2.git
    
  2. Install Composer:

     $ cd academicbrother2
     $ curl -sS https://getcomposer.org/installer | php
    
  3. Create a database and user to use with Symfony:

     $ mysql -u root -p
     Enter password:
     
     mysql> create database academicbrother2;
     mysql> create user 'symfony'@'localhost' identified by 'notsosecret';
     mysql> grant all privileges on academicbrother2.* to 'symfony'@'localhost';
    
  4. Fetch required vendor dependencies and configure Symfony:

     $ php composer.phar install
    
  5. Check your PHP configuration with:

     $ php app/check.php
    
  6. To get rid of all warnings, on Debian Wheezy, I:

    6.1. upgraded to PHP 5.5 via http://dotdeb.org

    6.2. set the date.timezone setting in /etc/php5/{apache2,cli}/php.ini, in my case to Europe/Vilnius

  1. Try it out!

To launch a development server, do:

$ php app/console server:run

The server will be accessible through http://localhost:8000/app_dev.php.

  1. Generate database tables

  1. Create db

     $ php app/console doctrine:database:create
    
  2. Generate tables

     $ php app/console doctrine:schema:update --force
    
  3. Populate tables with default data

     $ php app/console ab:dbpopulate db_resources/UK_uni_list.txt
    
  4. Create an administrator user

     $ php app/console ab:createadmin
    
  1. Configure Bootstrap frontend framework

  1. Run php app/console assetic:dump to generate assests in /web folder (make them accessible to templates).

About

Platform for the student mentorship project Academic Brother

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE_symfony

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published