All files that must be served are in the web directory.
You must run the get_composer.sh or otherwise download Composer.
Then run ./composer.phar update to download the necessary dependencies.
Place the web directory to be served by your web server.
This must either be symbolically linked, or it can be copied and the original project directory specified in the configuration file.
You must then copy config.example.php into the web directory as config.php, and edit it according to your setup.
From within the project directory:
$ ./get_composer.sh
$ ./composer.phar install
$ ln -s `realpath web` /var/www/html/my/web/path
The project can then be run from http://my.example.com/my/web/path
All administration scripts are contained in the scripts directory. To run these, cd to the web directory and run them as:
$ php ../scripts/info.php # Replace info.php with appropriate script.
These scripts will use the settings from config.php.
From within the web directory, run the create_db.php script:
$ php ../scripts/create_db.php
Run the admin user setup script (admin_setup.php) to add a user from within the web directory:
$ php ../scripts/admin_setup.php
The wizard script will guide you through setup.
Once the software is installed and an administrator user is created, you are ready to begin. Login with the administrator e-mail address and password.
At the main page, you have several options; you can:
- Go to your user settings
- Manage existing cards
- Manage existing users
At the main page, you can begin by adding a new user for someone else.
Go to Manage Users and fill out and submit the Create New User form. This will create an account and generate a temporary password that you can then send to that person so they can log in.
You can now create a card registered for that individual. Go to that user's settings, either from the creation page or from Manage Users. Select the Create New Card option. On the page for that card, you can generate a PDF with a QR code to print off as a physical card.
When that card is scanned, the scannee will be able to input their information and location and record the good deed before passing the card on to someone else. Scans will be displayed in the main map, as well as in the maps for each card.
There are two ways to interact with this website as a traditional user:
- Visit the hosted website directly
- Scan the QR code on a card presented to you in-person
At the main page, you have several options; you can:
- Learn more about the project
- View a small map of the scans
- Log in to the website
The only accounts currently available are those created by a website administrator. If you have an account, a Kindness Scanner representative should have sent you the login information. Once logged in, the Login button will be replaced by Hello, (name). You can now view your user options by hovering over the words Hello, (name), or by tapping on them if you are on a mobile device. Your options are:
- My Cards - this will take you to a page where you may view information about the cards registered under your name, including a map of where it has been scanned.
- Settings - this will take you to a page where you may view your account information and make changes to it.
- Logout - this will log you out of your account.
When the website loads, you will see a form. Please fill out the information and hit the submit button. You should now be shown a page that confirms that your information has been submitted. Use the To Home button to be taken to the homepage of the website. See the above section, titled Visiting the Website Directly, to read more information about what you can do on the website.