Skip to content

silexjs/silex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  (i) 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 (see project:install)
    project:install [dir]                  Installs the framework (Dependencies and Nmespace)

  Options:

    -h, --help  output usage information

Use CLI outside of a project

Lanch project :

$ node index.js
   _____ _ _               _  _____
  / ____(_) |             | |/ ____|
 | (___  _| | _____  __   | | (___
  \___ \| | |/ _ \ \/ /   | |\___ \
  ____) | | |  __/>  < |__| |____) |  v0.0.x
 |_____/|_|_|\___/_/\_\____/|_____/   development

Kernel: Bundle "SilexFrameworkBundle" loaded
Kernel: Bundle "SilexSequelizeBundle" loaded
Kernel: Bundle "SilexHttpServerBundle" loaded
Kernel: Bundle "SilexSwigBundle" loaded
Kernel: Bundle "SilexUtilitiesBundle" loaded
Kernel: Bundle "SilexHttpStaticBundle" loaded
Kernel: Bundle "SilexMailerBundle" loaded
Kernel: 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

  (i) This console is connected to Silex project "test-silex"

  Usage: silex [options] [command]


  Commands:

    project:install [dir]                      Installs the framework (Dependencies and Nmespace)
    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

Releases

No releases published

Packages

No packages published