https://github.com/numtel/meteor-mysql-leaderboard
Exploring methods of using mysql reactively
https://github.com/numtel/meteor-mysql-leaderboard
Last synced: about 1 year ago
JSON representation
Exploring methods of using mysql reactively
- Host: GitHub
- URL: https://github.com/numtel/meteor-mysql-leaderboard
- Owner: numtel
- Created: 2014-11-15T06:38:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-12-15T02:43:12.000Z (over 9 years ago)
- Last Synced: 2025-03-04T07:51:20.577Z (over 1 year ago)
- Language: CSS
- Size: 44.9 KB
- Stars: 30
- Watchers: 5
- Forks: 16
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MySQL Leaderboard Example
The familiar Meteor Leaderboard example modified to use a MySQL backend, reactively!
This example uses the following new package for MySQL integration:
* [numtel:mysql](https://github.com/numtel/meteor-mysql)
## Quick start
### Using Embedded MySQL Server
The [`numtel:mysql-server` Meteor Package](https://github.com/numtel/meteor-mysql-server) can be used to embed a MySQL server into your Meteor application, just as Mongo is embedded by default. At this time there is not yet Windows support but Linux (32 and 64 bit) as well as Mac OSX are supported.
When using `numtel:mysql-server`, the configuration settings will be read from `leaderboard.mysql.json`.
```bash
$ git clone https://github.com/numtel/meteor-mysql-leaderboard.git
$ cd meteor-mysql-leaderboard
# Install mysql-server package
$ meteor add numtel:mysql-server
$ meteor
```
### Using Externally Configured MySQL Server
This example requires a MySQL server configured to output the binary log in row mode.
See [the `mysql-live-select` installation instructions](https://github.com/numtel/mysql-live-select#installation) for more details...
```bash
$ git clone https://github.com/numtel/meteor-mysql-leaderboard.git
$ cd meteor-mysql-leaderboard
# Create `leaderboard` database and import sample tables and data
$ mysql -uUSERNAME -pPASSWORD < leaderboard.sql
# Update database connection settings in your favorite editor (line 60)
$ ed leaderboard.js
$ meteor
```