Demo web app that allows users to register and manage list of timezones and view time in those.
- Apache web server with mod_rewrite
- MySQL Server
- PHP 5.5
Before automatic installation, it is required to setup database access parameters. The application uses the first config file it can find in config dir, with this priority:
-
prod.config
-
stage.config
-
test.config
-
dev.config
dev.config is provided via source control, and for the other environments - quick start examples are included.
NOTE: logging configuration is not working yet.
Test and dev environments include a couple of pre-loaded users for testing purposes:
novak:novak123
roger:roger123
-
Get the application source (from this repo)
-
Setup web server (not covered)
-
Install composer if necessary (not covered)
-
Run composer install (not covered)
-
Configure the app (see Configuration section)
-
Run setup script (could be moved as an install task/include the confirmation that it deletes any existing data in the db):
cd install; php setup.php
-
That's it! You can navigate to your web app.