Skip to content
Snippets Groups Projects
user avatar
Sebastian Castro authored
a78c9dc4
History

MonVoisinFaitDuBio

Be pleased to add some more informations if you solve installation issues !

Requirements

  1. Php
  2. Composer
  3. Nodejs
  4. Git
  5. Serveur Php (Wamp server for example)
  6. Any Text Editor (SublimeText for example)

Installation helper (in french) :

  1. Openclassroom "Vérifier l'installation de PHP en console"
  2. Openclassroom "Installer composer et git"

Installation

Cloning repo

cd path-to-wamp-www (default windows c:/wamp/www)
git clone https://github.com/Biopenlandes/PagesVertes.git
cd PagesVertes/

Installing dependencies

Php dependency (symfony, bundles...)

php path-to/composer.phar install or composer install

During installation, config/parameters file will be created, provide database infos or leave default fields

Workflow dependencies (compiling sass and javascript)

npm install -g gulp
npm install

Start

Dumping assets

php bin/console assets:install --symlink web

Build Javascript and Css

gulp watch

Start watching for file change

gulp watch

Lauch wamp server

Generate Database

Go to symfony console : http://localhost/PagesVertes/web/app_dev.php/_console

doctrine:schema:update --force
doctrine:fixtures:load

Then generate if necessary random point on the map : http://localhost/cartoV3/PagesVertes/web/app_dev.php/fournisseur/generate/500

Everthing is ready, enjoy : http://localhost/PagesVertes/web/app_dev.php

Production

  1. gulp production
  2. move files to FTP