Fork me on GitHub

Nodefony Documentation

Beta


Advanced Use Beta
  • Servers
  • Front Proxy NGINX
  • Production Mode PM2
  • Statics Files
  • CDN
  • Sessions
  • Firewall
  • Authentication
  • Orm
  • Realtime

Getting Started with Nodefony

More details

NODEFONY INSTALLATION : See more ( Nodefony installation documentation )

Get sources from gitHub


$ git clone https://github.com/nodefony/nodefony.git

$ cd nodefony

$ make build

Configurations : See more ( Nodefony Configurations documentation )

By defaut NODEFONY bind all servers on loopback ( localhost : 127.0.0.1 )

  • domain : localhost
  • http : 5151
  • https: 5152

If you want change listen port http(s) by defaut or domain ( Configurations framework )
Change config.yml Location : ./config/config.yml


name                            : "NODEFONY"
version                         : "2.0.3-beta"
system:
  domain                        : localhost                             # nodefony can listen only one domain ( no vhost )  /    [::1] for IPV6 only
  domainAlias:                                                          # domainAlias string only <>   example ".*\\.nodefony\\.com  ^nodefony\\.eu$ ^.*\\.nodefony\\.eu$"
    - "^127.0.0.1$" 
    - "^docker.nodefony$"
  httpPort                      : 5151
  httpsPort                     : 5152
  statics                       : true
  security                      : true
  realtime                      : true
  monitoring                    : true
  locale                        : "en_en"

  servers:
    http                        : true
    https	                : true	
    ws			        : true	
    wss			        : true
    certificats:
      key                       : "config/certificates/server/privkey.pem"
      cert                      : "config/certificates/server/fullchain.pem"
      ca                        : "config/certificates/ca/nodefony-root-ca.crt.pem"
      options:
        rejectUnauthorized      : false

  bundles:
    documentation 	        : "./src/nodefony/bundles/documentationBundle"
    test		        : "./src/nodefony/bundles/unitTestBundle"
    demo			: "./src/bundles/demoBundle"

  PM2:
    script		        : "nodefony"
    name			: "nodefony"
    exec_mode		        : "cluster"
    max_memory_restart	        : "1024M"
    autorestart		        : true
    max_restarts		: 10
    watch			: false
    error_file                  : "tmp/nodefony.log" 
    out_file                    : "tmp/nodefony.error.log"
    merge_logs                  : true
    env:
      NODE_ENV                  : "production"
      MODE_START                : "PM2"

	

Running NODEFONY : See more ( RUN Nodefony documentation )


# Run Appliation in DEV mode

$ ./nodefony_dev
             
	

ACCEES NODEFONY APPLICATION :

Access to App with URL : http://localhost:5151
By default the nodefony clone come with a demonstration bundle named "demoBundle"


Local Recent Commits
GitHub Issue Queue Activity