Wednesday, May 11, 2016

Install composer and Yii2 on windows

Download and install wamp and composer from here if you have not installed php and composer yet

https://sourceforge.net/projects/wampserver/
https://getcomposer.org/Composer-Setup.exe

Open powershell in admin and run the following command:

> [cd to your own directory where you like to do development]
> composer global require "fxp/composer-asset-plugin:~1.1.1"
> composer create-project --prefer-dist yiisoft/yii2-app-basic myappname

The "myappname" is the directory to which yii2 will be installed

Thursday, March 31, 2016

Simple command to start with GIT

This post keeps some quick references to simple command lines for starting using git with bitbucket.

```bash
`mkdir ~/git/myproject
`cd ~/git/myproject
`git init
`git remote add origin https://[myname]@bitbucket/[myname]/myproject.git
`touch helloworld.txt
`git add --all .
`git commit -m "first time commit"
`git push origin master

Other useful commands like:


  • View remote urls : git remote -v
  • Change remote url: git remote set-url add origin ...

`

Tuesday, January 12, 2016

Chocolatey

Chocolatey is a machine packaging manager for Windows, which makes it very easy to install tools such as cygwin and many others on Windows platform.

To install Chocolatey, open powershell in administrator mode and run the following command:

iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

To use Chocolatey for installing tools such as vagrant and virtualbox, run the following command in powershell:

cinst vagrant virtual

To install Cygwin, run the following command in powershell:

cinst cyg-get


Link: https://chocolatey.org/