diff --git a/README.md b/README.md index 879b2af..30c4047 100644 --- a/README.md +++ b/README.md @@ -1,69 +1,51 @@ -# Simple MVC +# Strasbouquet - Projet 2 WCS 2020 ## Description - -This repository is a simple PHP MVC structure from scratch. - -It uses some cool vendors/libraries such as Twig and Grumphp. -For this one, just a simple example where users can choose one of their databases and see tables in it. - -### Prerequisites - -Use this template repository to a new Github repository in WildCodeSchool organization following this exemple : -`----` as **bordeaux-php-1903-project2-servyy** - -### Check on Travis - -1. Go on [https://travis-ci.com](https://travis-ci.com). -2. Sign up if you don't have account, -3. Look for your project in search bar on the left, -4. As soon as your repository have a `.travis.yml` in root folder, Travis should detect it and run test. -5. Configure Travis as described in the screenshot below, this is needed to avoid performance issues. - -> You can watch this screenshot to see minimum mandatory configuration : ![basic config](http://images.innoveduc.fr/symfony4/travis-config.png) - - - -### Configure you repository - Settings options - -1. Add your students team as contributor . -2. Disallow both on 'dev' and 'master' branches your students writing credentials. -3. Disallow merge available while one approbation is not submitted on PR. - -> You can watch this very tiny short video : (Loom : verrouillage branches GitHub)[https://www.loom.com/share/ad0c641d0b9447be9e40fa38a499953b] - - -## Steps - -1. Clone the repo from Github. -2. Run `composer install`. -3. Create *config/db.php* from *config/db.php.dist* file and add your DB parameters. Don't delete the *.dist* file, it must be kept. -```php -define('APP_DB_HOST', 'your_db_host'); -define('APP_DB_NAME', 'your_db_name'); -define('APP_DB_USER', 'your_db_user_wich_is_not_root'); -define('APP_DB_PWD', 'your_db_password'); -``` -4. Import `simple-mvc.sql` in your SQL server, -5. Run the internal PHP webserver with `php -S localhost:8000 -t public/`. The option `-t` with `public` as parameter means your localhost will target the `/public` folder. -6. Go to `localhost:8000` with your favorite browser. -7. From this starter kit, create your own web application. - -### Windows Users - -If you develop on Windows, you should edit you git configuration to change your end of line rules with this command : - -`git config --global core.autocrlf true` - -## URLs availables - -* Home page at [localhost:8000/](localhost:8000/) -* Items list at [localhost:8000/item/index](localhost:8000/item/index) -* Item details [localhost:8000/item/index/show/:id](localhost:8000/item/show/2) -* Item edit [localhost:8000/item/index/edit/:id](localhost:8000/item/edit/2) -* Item add [localhost:8000/item/index/add](localhost:8000/item/add) -* Item deletion [localhost:8000/item/index/delete/:id](localhost:8000/item/delete/2) - -## How does URL routing work ? - -![Simple MVC.png](https://raw.githubusercontent.com/WildCodeSchool/simple-mvc/master/Simple%20-%20MVC.png) +Projet réalisé dans le cadre de la formation PHP Développeur Web à la Wild code school pendant 5 semaines.
+Réalisation d'un site fictif pour un fleuriste Strasbourgeois n'ayant aucune présence sur internet, et n'ayant aucune idée de palette ou de design pour son site.
+Cahier des charges non fournis. + +## Equipe + + - LeadDev : Typhaine (https://github.com/karapuce) + - Backend Developper & Designer : Yann (https://gist.github.com/mozbiat) + - Backend Developper : Franck (https://github.com/Jeffo7980) + - Backend Developper : Pierre (https://github.com/kiw808) + +### Etapes + +Premier projet en PHP avec twig, réalisé de avril à mai 2020. +
+ -> Edition d'un Product Backlog
+ -> Réalisation d'un wireframe
+ -> Conception de la base de données
+ -> Utilisation de la méthode agile
+ -> Réalisation du CRUD
+ -> Séparation back-office et front-office
+ -> Système d'authentification avec hash_password
+ -> Gestion des sessions et du panier + -> Filtrage des produits + -> Ajout des pages fixes + -> Finitions du site + +### Petit aperçu du site + +>L'accueil lorsque l'on arrive sur le site ![homepage](home_page.png) +

+>Le rendu des bouquets dans l'onglet dédié, avec des filtres par thèmes ![page des bouquets](bouquets.png) +

+>La vue et gestion des produits côté administrateur ![panel admin](panel_admin.png) + + +### Langages & outils utilisés + +
    +
  • PHP
  • +
  • Jquery
  • +
  • Twig
  • +
  • Uikit
  • +
  • Trello
  • +
  • Draw.io
  • +
  • Travis
  • +
  • GrumPhp
  • +
\ No newline at end of file diff --git a/Simple - MVC.png b/Simple - MVC.png deleted file mode 100644 index 5158844..0000000 Binary files a/Simple - MVC.png and /dev/null differ diff --git a/bouquets.png b/bouquets.png new file mode 100644 index 0000000..b268373 Binary files /dev/null and b/bouquets.png differ diff --git a/home_page.png b/home_page.png new file mode 100644 index 0000000..acd5cc2 Binary files /dev/null and b/home_page.png differ diff --git a/panel_admin.png b/panel_admin.png new file mode 100644 index 0000000..7919e44 Binary files /dev/null and b/panel_admin.png differ diff --git a/simple-mvc.sql b/simple-mvc.sql deleted file mode 100644 index 7a983a5..0000000 --- a/simple-mvc.sql +++ /dev/null @@ -1,63 +0,0 @@ --- phpMyAdmin SQL Dump --- version 4.5.4.1deb2ubuntu2 --- http://www.phpmyadmin.net --- --- Client : localhost --- Généré le : Jeu 26 Octobre 2017 à 13:53 --- Version du serveur : 5.7.19-0ubuntu0.16.04.1 --- Version de PHP : 7.0.22-0ubuntu0.16.04.1 - -SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; - - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8mb4 */; - --- --- Base de données : `simple-mvc` --- - --- -------------------------------------------------------- - --- --- Structure de la table `item` --- - -CREATE TABLE `item` ( - `id` int(11) UNSIGNED NOT NULL, - `title` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - --- --- Contenu de la table `item` --- - -INSERT INTO `item` (`id`, `title`) VALUES -(1, 'Stuff'), -(2, 'Doodads'); - --- --- Index pour les tables exportées --- - --- --- Index pour la table `item` --- -ALTER TABLE `item` - ADD PRIMARY KEY (`id`); - --- --- AUTO_INCREMENT pour les tables exportées --- - --- --- AUTO_INCREMENT pour la table `item` --- -ALTER TABLE `item` - MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;