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 &
cd
to directory - Run
composer install
- Create a new MYSQL database called
todo
- Adjust the DB connection details in the file
src/DBConnector.php
according to your local setup - Import the file
db/todo.sql
into your database and run it to create thetasks
table 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