This is a To Do app with CRUD functionality, created after learning about MVC and PHP frameworks Cloned from an existing Slim 4 repo, then created my own MySQL database. Uses Routing, the Dependency Injection Container, Factories, Controllers & Views to implement CRUD funtionality
This To Do app is live here - https://todo.2020-davin.dev.io-academy.uk/
- Add a new to do task
- View current or completed tasks
- Mark a task as completed
- Delete a completed task
- Clone repo locally &
cdto directory - Run
composer install - Create a new MYSQL database called
todo - Adjust the DB connection details in the file
src/DBConnector.phpaccording to your local setup - Import the file
db/todo.sqlinto your database and run it to create thetaskstable and add some example data - Run this from a normal command prompt to start the app
php -S localhost:8080 -t public/ public/index.php