blog-ng Application
blog-ng is a very simple, basic blog app using Helma NG in a somewhat "Rails-ish" way and Hibernate as its ORM/persistence layer.
How to Run the App
-
Start your MySQL server and create the DBs (dev & test) + user with:
blog-ng/build/init.mysql.sql
-
Optional: put the jars (needed to make feeds work) which are located in blog-ng/build/extra into helma-ng/lib/ext.
-
Issue, e.g., the following command inside the blog-ng directory:
blog-ng> ./startApp.js
Given you installed the Helma NG Debian package on your system.
Otherwise, e.g.:
blog-ng> java -jar run.jar ../helma-ng/run.jar startApp.js
-
Then point your browser to:
How to Run the Unit Tests
-
You need the test DB to be setup (see above).
-
blog-ng> ./execTests.js
Resp., e.g.:
blog-ng> java -jar run.jar ../helma-ng/execTests.js
How to Rebuild the DB Schema
-
You need the dev DB to be setup (see above).
-
blog-ng> ./rebuildDb.js
Resp., e.g.:
blog-ng> java -jar run.jar ../helma-ng/rebuildDb.js
Note: Keep in mind that this will delete any data stored in the DB.
Dependencies
- MySQL (5.0+): http://dev.mysql.com/