Skip to content

Improve version of suggestron project with modern php, composer and Docker

Notifications You must be signed in to change notification settings

ampmonteiro/suggestotron

Repository files navigation

Suggestron project in PHP

Goals

  • relearning the fundaments of vanilla PHP
  • improved original code by using modern PHP (8.1+) like strict types, type hinting, etc
  • Using Composer tool for autoloading internal dependencies
  • Using Docker to create the development environment
  • To better developement it is taked advantages of this two wonderfull vscode extensions:
    • Docker (By Microsoft): to manage docker containers in vs code
    • Dev Containers (By Microsoft): to use vscode inside of the container.

Editor and Recommend extensions (Beside mention on goals section)

How this project is organized

  • this project is organized similar to original website
  • each chapter is a git branch, with its own CH*.md file with some steps and notes
  • the expections are CH1 and CH2 that stay at main branch

Differences between original and this project

  • the original was setup with Vagrant tool, this will use Docker
  • The lastest chapter will include some code improvements / refactors
  • Composer configuration will be included

PHP and DB

  • PHP: 8.1
  • DB: MySQL 8

CSS framework

  • Tailwind css

one of the forks from of original ( with original code)

https://github.com/neoln/suggestotron

Notes

  • to run this code DOCKER is not required, with this tools would be enough: XAMP, WAMP, MAMP, etc.
  • Docker compose is not used here, since it is a simple and educational goals project
  • if you are using MySQL as simple container, don't forget to verify the ip address

Images:

original:

Final version - original

Improved:

  • index / main page:

main page

  • edit page:

edit page

About

Improve version of suggestron project with modern php, composer and Docker

Topics

Resources

Stars

Watchers

Forks