• Blogs (9)
    • 📱 236 - 992 - 3846

      đź“§ jxjwilliam@gmail.com

    • Version: ‍🚀 1.1.0
  • git: use https over git protocol

    Blogs20152015-02-08


    1. Running the App during Development

    When working with angularjs, it needs a web-server support. There are 2 ways to do so in a simple and quick way:

    1. Using Webstorm which has a built-in webserver so no more extra-installation needed.
    2. http-server module

    The following is regarding on http-server: The angular-seed project comes preconfigured with a local development webserver. It is a node.js tool called http-server. You can start this webserver with npm start but you may choose to install the tool globally:

    sudo npm install -g http-server

    Then you can start your own development web server to serve static files from a folder by running:

    http-server -a localhost -p 8000

    Alternatively, you can choose to configure your own webserver, such as apache or nginx. Just configure your server to serve the files under the app/ directory.

    2. GitHub Error Message - Permission denied (publickey)

    You can also use the HTTPS URL instead of the SSH/git URL to avoid having to deal with SSH keys. This is GitHub’s recommended method.

    • Connecting over HTTPS (recommended)
      If you clone with HTTPS, you can cache your GitHub password in Git using a credential helper.
    • Connecting over SSH
      If you clone with SSH, you must generate SSH keys on each computer you use to push or pull from GitHub.

    So use https:// to avoid SSH credential issues.