Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariussoutier/eoffixtures
YAML fixtures framework for WebObjects
https://github.com/mariussoutier/eoffixtures
Last synced: about 6 hours ago
JSON representation
YAML fixtures framework for WebObjects
- Host: GitHub
- URL: https://github.com/mariussoutier/eoffixtures
- Owner: mariussoutier
- Created: 2011-01-21T22:19:56.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-07-04T09:01:09.000Z (over 13 years ago)
- Last Synced: 2024-04-16T10:21:19.091Z (7 months ago)
- Language: Scala
- Homepage:
- Size: 16.5 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
EOFFixtures.framework
=====================Overview
--------This is a small framework that allows using YAML files to populate WebObjects/EOF based applications.
I found this really useful for the following use cases:* Development
* Initial users for newly deployed applications
* Marketing/demo deployments
A reference of the YAML markup language can be found here: [YAML Reference](http://www.yaml.org/).Inspired by the fixtures mechanism in the [Play! framework](http://www.playframework.org/).
Usage
-----
* Add EOFFixtures to your WebObjects/WOnder application's build path (as a WebObjects framework in Eclipse).
* Create a YAML file (default name is fixtures.yaml, you can change this via the EOFFixtures.fileName property) in your Resources folder.
(For an example see the FixturesClient project.)
* In your application's Properties, set "EOFFixtures.loadInitialData" to true or manually call Fixtures.load().
* Pro-tip: Using different Properties.username files, you can define different fixtures for different environments.
* To build this as a framework, you have to set ${scala.home} to your Scala install dir
* Use the custom timestamp tags to ease the creation of NSTimestamp
* !now for the current date (aka `new NSTimestamp()`)
* !ts to create a calculated timestamp, in the format ` `, for example `!ts +3 days`, `!ts -3 weeks`, `!ts -1 month`.
Used libaries
-------------
* [Scala](http://www.scala-lang.org/)
* [Scalaj-collection](https://github.com/scalaj/scalaj-collection)
* [Snake YAML](http://code.google.com/p/snakeyaml/)
* [Project WOnder](http://projectwonder.blogspot.com/)
**Enjoy!**