Configuração nginx para rodar app node.js

``` server { listen 80;


location / {
    proxy_pass http://localhost:3001;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header ...

How to change node.js console.log color

Below you can find colors reference of text to command when running node.js application:

console.log('\x1b[36m%s\x1b[0m', info); //cyan

console.log('\x1b[33m%s\x1b[0m: ', path); //yellow

Colors reference

Reset = "\x1b[0m"

**Bright = "\x1b[1m" ...

Create Sails.js API with no front end

Run the command to create an API without front end

sails new myApi --no-frontend

If sails is arguing about grunt file when sails lift just add this peace of code to sailsrc


Por Marcos Mendes [@marcoshmendes]( ...