https://github.com/threespot/threespot-beerfund-app
Small productivity app for managing the Friday afternoon employee-funded beer fund balance. Built on Knockout.js+Require.js.
https://github.com/threespot/threespot-beerfund-app
Last synced: 7 months ago
JSON representation
Small productivity app for managing the Friday afternoon employee-funded beer fund balance. Built on Knockout.js+Require.js.
- Host: GitHub
- URL: https://github.com/threespot/threespot-beerfund-app
- Owner: Threespot
- Created: 2012-10-08T13:41:47.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T20:42:05.000Z (almost 6 years ago)
- Last Synced: 2024-12-28T16:19:35.616Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 773 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Threespot Beer Fund
The Threespot Beer Fund app. A small productivity app for managing the Friday afternoon employee-funded beer fund balance. Built on Knockout.js+Require.js.
##Versions
- `src/` : All raw source files for development.
- `dist/` : Built application, with require modules concatenated and minified.
All development should be done within `src/`, then built (see instructions below) and the `dist/` files deployed.
##Installation
1. Import `src/bf-schema.sql` into a new MySQL database. Default app config:
- DB name: "beerfund"
- user: "root"
- pass: "root"
2. You should be up and running if you used the default app config. Otherwise, adjust the database connection info in `src/bf-connection.php`.
##Build
The application builds using Grunt's Require.js packager. You'll need to install these tools once before making your first build. First, `cd` into the Beerfund root directory and then run:
npm install -g grunt
npm install
Then to create builds, `cd` into the Beerfund root directory and run:
grunt
Building the application will assemble Require.js modules into named, minified, and concatenated scripts, and copy all built assets over into the `dist/` directory.
*Note: the Require.js build process is NOT the same as simply minifying and concatenating scripts the way you would with a service such as Rails' asset pipeline. Require's build process also assigns unique IDs to each module based on the script file it was pulled from. Using other min/concat services will require that you manually assign module IDs based on filename.*