Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loicboutet/opal-tictactoe
https://github.com/loicboutet/opal-tictactoe
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/loicboutet/opal-tictactoe
- Owner: loicboutet
- Created: 2014-09-01T21:09:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-01T21:13:40.000Z (over 10 years ago)
- Last Synced: 2024-07-31T23:11:52.814Z (6 months ago)
- Language: Ruby
- Size: 160 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-opal - Opal Tic Tac Toe - A very simple port of TodoMVC (Uncategorized / Uncategorized)
README
# opal-todos
A very simple port of [TodoMVC](http://todomvc.com) (specifically based on backbone version).
## Running
Get dependencies:
```
$ bundle install
```Run the sprockets based server for auto-compiling:
```
$ bundle exec rackup
```Open `http://localhost:9292` in the browser.
## Code Overview
Opal comes with sprockets support built in, so using rack we can have an
easy to boot build system to handle all opal dependencies. If you look
in `index.html.erb`, you will see a call to `javascript_include_tag`
which acts just like the rails tag helper. This will include our
`app.rb` file, and all of its dependencies. Each file will be included
in a seperate `..` tag to make navigating the code in a
web browser easier.