Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dave/oak
A generic CMS in Meteor
https://github.com/dave/oak
Last synced: about 1 month ago
JSON representation
A generic CMS in Meteor
- Host: GitHub
- URL: https://github.com/dave/oak
- Owner: dave
- Created: 2014-01-27T23:11:08.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-28T00:29:30.000Z (almost 11 years ago)
- Last Synced: 2024-10-13T14:35:40.504Z (3 months ago)
- Language: JavaScript
- Size: 293 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
==================================
Installation
----------------------------------
Install Meteor:
$ curl https://install.meteor.com | /bin/shTo run in dev mode - http://localhost:3000/
$ meteor --settings dev.json
================================================================
Installing other helpful stuff
------------------------------
Nodejs:
http://nodejs.org/download/Meteorite package archive:
$ npm install -g meteoriteBrew:
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"Laika testing framework:
$ brew update
$ brew install mongodb
$ brew install phantomjs
$ sudo npm install -g laika
=================================================================
To run tests
-----------------------------------
First start mongodb for testing framework:
$ mongod --smallfiles --noprealloc --nojournalThen run tests:
$ laika
==============================================================
Helpers
---------------------------
{{$.javascript arguments }} // The new $cript helper
{{$.Session.get key}}
{{$.Session.equals key value}}
{{getLength a}} returns length property
{{$.Meteor.status.connected}}
{{$.Meteor.userId}}
{{cutString str maxLen}} cuts string appends...
{{isSelected a b}} if a equals b then return " selected"
{{isChecked a b}} if a equals b then return " checked"
{{$eq a b}} if a equals b then return true
{{$neq a b}} if not a equals b then return true
{{$in a b c d}} if a equals one of optional values
{{$nin a b c d}} if a equals none of optional values
{{$lt a b}}
{{$gt a b}}
{{$lte a b}}
{{$gte a b}}
{{$and a b}}
{{$or a b}}
{{$not a}}
{{$exists a}} a != undefined
{{getText notation}} translation!!
===========================