/Yacc

Yet Another Couette & Café

Primary LanguagePHP

Yacc - Yet Another Couette & Café

A dynamic room booking Web site, i.e. an AirBnB rip-off.

Authors

Paul Mabileau Alexandre Da Costa

Requirements

In parenthesis are the Debian or Debian-like corresponding package names, which could help you find the correct version for your system.

  • Composer (composer)
  • DOM, SimpleXML, WDDX, XML, and XSL module for PHP (php-xml).
  • SQLite3 module for PHP (php-sqlite3).
  • Internationalisation module for PHP (php-intl).

Optionnally, you can also install the cURL module for PHP (php-curl) to enable faster composer downloads.

Installation

  • Get the requirements.
  • Clone this git repository.
  • Go into the thus downloaded directory.
  • Run make install, which should install the symfony console and the composer dependencies automatically.

Execution

  • Run make db in order to build a testing database containing example information, called "data fixtures". This will require an Internet connection, as it fetches images from the Web and stores them in the public/assets/img directory. There should only be a few of them, twenty at most. You can run this target as many times as you like, it is meant to destroy previous data before making the new ones, including the images.
  • Run make run to start the Symfony local web server, which uses bin/symfony and not bin/console. Then open your Web browser and visit localhost:8000.

Updating

Simply run make update. Careful though, as it will potentially overwrite the requirements lock files composer.lock and symfony.lock, which detail exactly what is installed, in order to upgrade the project as a whole.