Skip to content

Arlan64/jpo

Repository files navigation

JPO – Journée Portes Ouvertes

JPO (stands for "Journée Portes Ouvertes" or "Open Day") is my study project in PHP with CodeIgniter (v3), carried out in May 2022. It is a mini-form system designed to collect feedback from visitors during a high school open day.

​ Features

  • Entry form with validation.
  • Dynamic display of available training courses from the database.
  • Visitor registration in the database, with "interested," "wish to apply," and comments.
  • Display of visitor statistics (separate page).

Install & Run Locally

  1. Prerequisites
  • PHP (compatible version with CodeIgniter 2)
  • Local Web Server (XAMPP, WAMP, MAMP…)
  • MySQL or MariaDB
  • Git (optional, if you want to clone the repo)
  1. Clone the repo (or download)
git clone https://github.com/Arlan64/jpo.git
cd jpo
  1. Configure the database Create a local database called jpo.
    Import the jpo.sql file into your database (with phpMyAdmin or MySQL CLI)
mysql -u root -p jpo < jpo.sql
  1. Configure the database connection Open /application/config/database.php and modify the connection information (username, password, database) to match with your local configuration :
$db['default'] = array(
    'dsn'      => '',
    'hostname' => 'localhost',
    'username' => 'YOUR_DB_USERNAME',
    'password' => 'YOUR_DB_PASSWORD',
    'database' => 'jpo',
    'dbdriver' => 'mysqli',
    'dbprefix' => '',
    'pconnect' => FALSE,
    'db_debug' => TRUE,
    'cache_on' => FALSE,
    'cachedir' => '',
    'char_set' => 'utf8',
    'dbcollat' => 'utf8_general_ci',
    'swap_pre' => '',
    'encrypt'  => FALSE,
    'compress' => FALSE,
    'stricton' => FALSE,
    'failover' => array(),
    'save_queries' => TRUE
);
  1. Prepare your local server Install and launch a local server like XAMPP, WAMP or MAMP.
    Place the project in the appropriate folder of the server (eg: for XAMPP : C:\xampp\htdocs\JPO).

  2. Configure the base URL Open the file /application/config/config.php and modify the following line to match your project's local URL:

$config['base_url'] = 'http://localhost/JPO/';
  1. Launch the project In your browser, access to http://localhost/JPO/. The project should load normally.

About

JPO (for "Journée Portes Ouvertes" or "Open Day") is my first PHP study project with CodeIgniter. The goal was to collect visitors' feedback via this small form that was present on all the high-school's computers. May 2022.

Topics

Resources

License

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors