Skip to content

A CakePHP 3 + VueJS betting game for football cups

Notifications You must be signed in to change notification settings

frankfoerster/tipsy

Repository files navigation

Tipsy - A CakePHP 3 + Vue.js betting game SPA

Tipsy is a betting game for football worldcups and shows how CakePHP 3 and Vue.js can be used to create SPAs that consist of a Vue.js powered frontend and an API implementation in CakePHP 3.

Installation

  1. Clone the project locally or on a server.
  2. Install dependencies
    composer install
  3. Configure your environment (Environment Documentation)
  4. Migrate the DB
    chmod +x bin/cake
    bin/cake migrations migrate

Development

  1. Install npm packages

    npm install
  2. Run any of the provided Grunt tasks to create a new frontend build.

    • webpack-dev

      grunt webpack-dev

      Creates an unminified development build that supports Vue.js Dev tools.

    • webpack-prod

      grunt webpack-prod

      Creates a production ready minified and uglified build without Vue.js Dev tools support.

    • watch-vue

      grunt watch-vue

      Watches for changes to any files (.vue, .js, .scss, .css) in the frontend app and automatically triggers a new webpack-dev build.

Notes

Depending on the debug configuration of your environment the app will either load the dev build (debug = true) or the prod build (debug = false).

About

This app is an experiment to see how easy it is to couple Vue.js with a stateless CakePHP API.

Screenshots

Login Screen:

login

Overview:

overview

Voting on Games:

games

About

A CakePHP 3 + VueJS betting game for football cups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published