Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ampmonteiro/suggestotron
Improve version of suggestron project with modern php, composer and Docker
https://github.com/ampmonteiro/suggestotron
composer docker mysql8 php8 tailwindcss
Last synced: 27 days ago
JSON representation
Improve version of suggestron project with modern php, composer and Docker
- Host: GitHub
- URL: https://github.com/ampmonteiro/suggestotron
- Owner: ampmonteiro
- Created: 2023-01-31T19:09:14.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-15T18:20:15.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T12:15:43.581Z (3 months ago)
- Topics: composer, docker, mysql8, php8, tailwindcss
- Language: PHP
- Homepage:
- Size: 902 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Suggestron project in PHP
- from the course / tutorial: **PHPBridge: Intro To PHP**
- original web page is not available, only cached one
- url from cached pages: [PHPBridge: Intro To PHP by web archive](https://github.com/tutsplus/php-fundamentals-2017)
- Thank you to [web archive.org](https://web.archive.org/)## 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](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker) (By Microsoft): to manage docker containers in vs code
- [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) (By Microsoft): to use vscode inside of the container.## Editor and Recommend extensions (Beside mention on goals section)
- Editor: [VS Code](https://code.visualstudio.com) (By Microsoft)
- [PHP Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client) (By Ben Mewburn)
- [PHP Namespace Resolver](https://marketplace.visualstudio.com/items?itemName=MehediDracula.php-namespace-resolver) (By Mehedi Hassan)
- [PHP Awesome Snippets](https://marketplace.visualstudio.com/items?itemName=hakcorp.php-awesome-snippets) (By HakCorp)
## 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](/chapters/original_sugestron.png 'UI from original project')
Improved:
- index / main page:
![main page](/chapters/ch_18_index.png 'main page')
- edit page:
![edit page](/chapters/ch_18_edit.png 'edit page with likes and delete')