Otagai is an architecture application skeleton and framework that allows you to develop websites rapidly in Node.js and Express.
See more info on project homepage
-
Download and install Node.js, MongoDB and Python (for mongodb bson npm module).
-
Install otagai.js globally (only for development):
npm install -g otagai
-
Navigate to a directory where you have rights to create files, and type:
otagai new app
This will create an otagai.js application called App in a directory called app and install the npm dependencies.
-
Change into the app directory and start development server
cd app otagai server dev
To run application in production mode
otagai server prod
To stop application (you must be in app folder)
otagai server stop
otagai createuser -u username -e [email protected] -p password
Creates a superuser account (a user who has all default permissions). This command useful for create initial user account.
For generate model:
otagai gen model demo -f name:string,count:number
Controller:
otagai gen controller demo
Views:
otagai gen views demo
Scaffold (model, controller, views):
otagai gen scaffold demo -f name:string,count:number
Project based on form5-node-express-mongoose-coffeescript
Otagai.js thinks to develop as modular framework, focused on convenience and speed of development: livereload, fast transparent preprocessing, easy database migrations and deploying. This is collection of massive patterns and best Node.js practicals.