Socket
Socket
Sign inDemoInstall

silex

Package Overview
Dependencies
131
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    silex

The Node framework based on the Symfony 2


Version published
Maintainers
1
Install size
310 kB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 02 Apr 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc