markplewis / hotdog-mark-old

The Real Hotdog Mark's source code

Home Page:http://www.therealhotdogmark.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Real Hotdog Mark

Source code for www.therealhotdogmark.com

Development notes

The code in index.php is based on this "PHP quickstart" guide for Google Analytics Reporting API v4.

This website uses the Google Analytics API to track the number of unique visitors. This required me to create a Google Clound Platform project with an associated service account. I then had to add the service account to my Google Analytics account.

Important: For security reasons, the service account credentials have not been committed to source control. Before deploying these files to a web server, you'll need to paste the service account credentials into the service-account-credentials.json file, then upload this file into a folder above the web root.

Getting started

  1. Follow these instructions to install Composer locally, into the project's root directory.
  2. Run mv composer.phar composer to rename the Composer file.
  3. Run php composer install to install the project's dependencies.
  4. Run php -v and make sure that you have PHP version 7.2.5 or higher installed. The web server that you deploy these files to will also need to be running this version of PHP or higher.
  5. Run php -S localhost:9000 to start a local PHP development server.

Upgrading dependencies

  1. Run php composer outdated to check for available updates.
  2. Run php composer update to update the dependencies.

About

The Real Hotdog Mark's source code

http://www.therealhotdogmark.com


Languages

Language:PHP 76.5%Language:CSS 23.5%