Giter Site home page Giter Site logo

nantes-0919-php-olympic-nantais's Introduction

Simple MVC

Description

PROJECT 2 - L'Olympic Nantais !

DESCRIPTION :

This repository represents the project 2 for a period of 6 weeks, based on a PHP MVC structure. It is the creation of the website of a new concert hall in Nantes. It uses vendor/librairies such as Twig, Bootstrap and Grumphp.

We use the Scrum method to realise this project.

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 'db.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.

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 localhost:8000/
  • Events list (front) at localhost:8000/
  • Event details (front) at localhost:8000/detail/event/:id
  • Event edit (back) localhost:8000/events/edit/:id
  • Event add (back) localhost:8000/events/add/:id
  • Event deletion (back)localhost:8000/events/delete/:id ...

How does URL routing work ?

Simple MVC.png

Project team :

nantes-0919-php-olympic-nantais's People

Contributors

froldev avatar bnj-dez avatar achaillot avatar ellouly avatar francoisdoussin avatar

Watchers

James Cloos avatar

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.