Note this repo is archived and won't be receiving updates, so code might be out of date with current conventions. Keeping this around as a reminder of how far I've come.
This is a minimal PHP application that tracks and stores information about books in a SQLite database.
- Read and display all books in the database
- Create a new book
- Delete a book
- Update a book
- clone the repo
- install MAMP
- move project directory to
/Applications/MAMP/htdocs/
- open MAMP from
/Applications/MAMP/MAMP.app
- click on
start servers
- navigate to
localhost:8888
in a web browser
Note: You will also need to set up your local SQLite database. See official docs here. Unless you change my code, you'll need to name the database test
and create a books
table in that db.
Note: Users on Windows or Linux can ignore the above MAMP directions and download XAMPP instead. Not sure of the specific setup, but they probably have good docs?
- Take a look at the code on this branch.
- A local MySQL db instance will run through MAMP if you're on a Mac.