Silex
The Node (or io.js =) framework based on the Symfony 2. The project is still in development, you can use but with risk of bugs.
Install
$ npm install -g silex
Use CLI in a project
$ silex This console is NOT connected to Silex project Usage: silex [options] [command] Commands: project:create [options] <name> [dir] Create basic files and installs the framework project:install [dir] Installs the framework Options: -h, --help output usage information
Use CLI outside of a project
Lanch project :
$ node index.js _____ _ _ _ _____ / ____ | | |/ ____| | | v0.0.x |_____/|_|_|\___/_/\_\____/|_____/ development Kernel: Bundle "SilexFrameworkBundle" loadedKernel: Bundle "SilexSequelizeBundle" loadedKernel: Bundle "SilexHttpServerBundle" loadedKernel: Bundle "SilexSwigBundle" loadedKernel: Bundle "SilexUtilitiesBundle" loadedKernel: Bundle "SilexHttpStaticBundle" loadedKernel: Bundle "SilexMailerBundle" loadedKernel: Bundle "SilexFacebookBundle" loaded...
To change the environment (check file "app/config/environments.json") :
$ node index.js -e testing$ node index.js -e production...
Otherwise, create an environment variable "NODE_ENV".
Lanch console :
$ silex This console is connected to Silex project "test-silex" Usage: silex [options] [command] Commands: project:install [dir] Installs the framework sequelize:generate:models [options] [dir] Create the models files from the database sequelize:migrate:status [dir] Show list of migrations sequelize:migrate:up [dir] Runs migration files sequelize:migrate:undo [dir] Revert the last migration run Options: -h, --help output usage information