azertea / nuitdelinfo2013

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Team information

Find more informations about us : here

File installation

Install the github windows software. Then, click on tools > options and change the default storage directory to point to the webserver root. Fork the azertea repository and clone the code on your computer.

GitHub for Windows : http://windows.github.com/

Database installation

Create a database with PhpMyAdmin. Open the file web_server_root/your_azertea_folder/app/config/database.php and update the database password and the database name with your's local username and password.

Environment variables in Windows

For the next step, you'll need to execute a program written in php. But first, we will configure environment variables in Windows for specify the directory where the php executable is located.

  • From the Desktop, right-click My Computer and click Properties.
  • Click Advanced System Settings link in the left column.
  • In the System Properties window click the Environment Variables button.

More information here

Edit the system environment variable ( not user environment variable ) nammed "Path" and add to the previous value

  • a semicolon ;
  • then the folder where php.exe is located (I guess in your case that would be C:\xampp\php )

"Path" would looks like [precedent values of path];C:\xampp\php (for Xampp web server)

Database deployement

Hold the SHIFT key while you right-click the Windows window on the laravel root folder. You should see "Open Command Window here"

  1. On the command window, type :

     php artisan migrate --env=local
    

##That's it You can try to reach your local website now !

Mac users (with MAMP)

  1. Install MAMP from http://www.mamp.info/en/index.html

  2. Then edit your ~/.bash_profile to add the following line :

    export PATH="/Applications/MAMP/bin/php/php5.4.10/bin/:$PATH"

  3. Go to /tmp and type

     curl -sS https://getcomposer.org/installer | php
     sudo mv composer.phar /usr/local/bin/composer
    
  4. Check your installation :

    • Download the latest code from this repository

    • Run the following command in the root of the repo :

      php -S localhost:4000 server.php

    • Check the server going to http://localhost:4000/

About


Languages

Language:PHP 41.9%Language:CSS 40.2%Language:JavaScript 17.8%Language:Shell 0.1%