Giter VIP home page Giter VIP logo

lyon-php-2003-project2-setmind's Introduction

Simple MVC

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.

Check on Travis

  1. Go on 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.

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.
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');
  1. Import simple-mvc.sql in your SQL server,
  2. 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.
  3. Go to localhost:8000 with your favorite browser.
  4. 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/
  • Items list at localhost:8000/item/index
  • Item details localhost:8000/item/index/show/:id
  • Item edit localhost:8000/item/index/edit/:id
  • Item add localhost:8000/item/index/add
  • Item deletion localhost:8000/item/index/delete/:id

How does URL routing work ?

Simple MVC.png

lyon-php-2003-project2-setmind's People

Contributors

actix2013 avatar ben2669 avatar biffou avatar martinotm avatar zazalit avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

actix2013

lyon-php-2003-project2-setmind's Issues

[600] En tant que visiteur/client, je veux pouvoir choisir de me connecter (client) ou de créer un compte (visiteur) -> je peux soumettre le formulaire correspondant

  • les 2 tables existent: Login and create an account

  • un bouton "submit" est présent sur les 2 formulaires

  • quand je clique sur l'onglet connexion, le formulaire de connexion s'affiche à l'intérieur de la page actuelle

  • quand je clique sur l'onglet "créer un compte", le formulaire "Créer un compte" s'affiche à l'intéreiru de la page actuelle

  • Catch phrase dynamique en fonction du formulaire

  • Image d'illustration dynamique en fonction du formulaire

[950] En tant que visiteur, via le menu je peux visualiser les boutons -> liste des boutons

  • le bouton envelop est crée et présent dans le header

  • le bouton evaluate est crée et présent dans le header

  • le bouton about us est crée et présent dans le header

  • le bouton logo connexion et crée et présent dans le header

  • composants responsive

  • le bouton 'histoire de l'entreprise' est crée et présent dans le footer

  • le bouton mentions légales et crée et présent dans le footer

  • composants responsive

EPIC LINK

Création des liens et connexions entre les pages

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.