An open API service indexing awesome lists of open source software.

https://github.com/arlan64/jpo

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.
https://github.com/arlan64/jpo

codeigniter codeigniter3 open-day php php-framework

Last synced: 29 days ago
JSON representation

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.

Awesome Lists containing this project

README

          

# 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)

2. **Clone the repo (or download)**
```bash
git clone https://github.com/Arlan64/jpo.git
cd jpo
```

3. **Configure the database**
Create a local database called `jpo`.
Import the `jpo.sql` file into your database (with phpMyAdmin or MySQL CLI)
```bash
mysql -u root -p jpo < jpo.sql
```

4. **Configure the database connection**
Open /application/config/database.php and modify the connection information (username, password, database) to match with your local configuration :
```php
$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
);
```

5. **Prepare your local server**
Install and launch a local server like [XAMPP](https://www.apachefriends.org/index.html), [WAMP](https://www.wampserver.com/) or [MAMP](https://www.mamp.info/).
Place the project in the appropriate folder of the server (eg: for XAMPP : `C:\xampp\htdocs\JPO`).

6. **Configure the base URL**
Open the file `/application/config/config.php` and modify the following line to match your project's local URL:
```php
$config['base_url'] = 'http://localhost/JPO/';
```
7. **Launch the project**
In your browser, access to http://localhost/JPO/. The project should load normally.