Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dux/tic-tac-toe
Sinatra, DataMapper + Mithril JS tech demo
https://github.com/dux/tic-tac-toe
Last synced: about 2 months ago
JSON representation
Sinatra, DataMapper + Mithril JS tech demo
- Host: GitHub
- URL: https://github.com/dux/tic-tac-toe
- Owner: dux
- Created: 2015-10-17T14:57:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-19T08:35:58.000Z (about 9 years ago)
- Last Synced: 2023-03-24T05:21:51.178Z (almost 2 years ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic tac toe demo
## Server side
Sinatra
OR mapper -> DataMaper, cleaner to get it working in Sinatra then AR
## Client side
### JS
http://mithril.js.org/
Frontend with Mithril. It does very well
* two-way data binding
* routing
* controler-view renderingSimple and extremly efective.
### Pre-processors
No usage of any pre-processors as SASS or CoffeeScript or TypeScript.
That is the reason JS in public/js
## Install
bundle install
puma -p 3000 (or whatever that reads config.ru)
## Testing
### Continuous Integration - CI
Travis
https://travis-ci.org/dux/tic-tac-toe
[![Build Status](https://travis-ci.org/dux/tic-tac-toe.svg?branch=master)](https://travis-ci.org/dux/tic-tac-toe)
### ruby
rspec spec
### javascript
node-jasmine spec // not implemented
## Security
There is no security whatsoever
* GET insted of POST
* no checks for data consistency## Resources used
* http://www.sinatrarb.com/
* http://mithril.js.org/
* http://datamapper.org/
* http://rspec.info/
* https://github.com/mhevery/jasmine-node
* https://travis-ci.org/