Skip to content

cosenonjaviste/blogzinga

Repository files navigation

BlogZinga!

Find your favorite blogs here!

http://www.blogzinga.it

How to contribute

  • Fork this repo
  • Add your favorite blogs to blogs.json
  • Aks for a Pull Request, we will merge ASAP

How to resolve dependencies

npm install && bower install

How to build and launch dev-mode

  • in root folder
gulp

Check your browser at http://localhost:8000/

Gulp-Connect will start a live reload enabled server

If gulp is not installed on your computer, you should install it using the command:

npm install -g gulp

How to launch in production-mode

  • in root folder
gulp --gulpfile gulpfile_publish.coffee

to build and compress resources

  • to start the backend
./backend/start.js

Notes to proxy network

In the case where your computer is connected to a network with a proxy server, then you should set npm, bower and git to use the proxy server. The way to configure nmp is the following:

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

If you need to specify credentials, they can be passed in the url using the following syntax:

http://user_name:password@proxy.company.com:8080

You can also set the proxy configuration as a command line argument or environment variable. Further exploration of the [https://npmjs.org/doc/config.html](npm config documentation) showed that the npm config set command sets the proxy configuration in your .npmrc file.

Bower can be configured using JSON in a http://bower.io/docs/config/#bowerrc-specification file. The way to configure proxy is the following (content of .bowerrc):

{
  "proxy": "http://proxy.company.com:8080",
  "https-proxy": "http://proxy.company.com:8080"
}

For git set the proxy configuration in this way:

git config --global http.proxy http://proxy.company.com:8080
git config --global https.proxy http://proxy.company.com:8080

When under a proxy, you must configure git to use https:// instead of git://. You can configure it for every endpoint or for this specific host as follows:

git config --global url."https://".insteadOf git://
git config --global url."https://gist.github.com".insteadOf git://gist.github.com