An open API service indexing awesome lists of open source software.

https://github.com/dmuth/guestbook

A sample guestbook app I wrote in PHP for an interview. Part of the requirements involved NOT using any frameworks, so I created my own architecture from the ground up.
https://github.com/dmuth/guestbook

Last synced: about 1 year ago
JSON representation

A sample guestbook app I wrote in PHP for an interview. Part of the requirements involved NOT using any frameworks, so I created my own architecture from the ground up.

Awesome Lists containing this project

README

          

# Guestbook App

This is a sample guestbook app that I wrote in PHP, using a custom MVC
framework that I built just for this project.

It does the following:

- Prompts a user to enter their name
- Prompts a user to enter their interests in comma-delimited form
- Prompts a user to enter their message

Once a message is saved, viewing the guestbook will cause a connection
to be made to Flickr's API to fetch a picture for each interest entered.

## Installation

- Go into protected/sql/
- Update `user.sql` to have a different username or password if you wish
- Run the commands in `user.sql` as the database admin user
- `mysql -u admin_username -padmin_password < ./user.sql`
- Run the commands in `schema.sql` as the database user.
- `mysql -u guestbook_username -pguestbook_password < ./schema.sql`
- Go into protected/config/
- Season `db-dev.php` and `db-production.php` to taste.
- Symlink one of those files to db.php, depending on whether
you are in development or production.

## Notes

- If you are running Apache, an `.htaccess` file in protected/
will properly restrict access to that directory
- If you are running another webserver, **you are repsonsible
for securing that directory**.

## Licensing

If you actually want to use my code, then consider it available
under the GPL v2.

Enjoy!