## 第1節準備
**開發環境:**:
* WAMP:PHP5.6,MySQL5.7.9
* Atom編輯器
* Chrom瀏覽器
**Laravel版本:** 5.2
**幫助手冊**: <http://d.laravel-china.org/docs/5.2>
**安裝:**
~~~
composer create-project --prefer-dist laravel/laravel newblog.com "5.2.*"
~~~

**虛擬域名配置:**
~~~
<VirtualHost *:80>
ServerAdmin 604854119@qq.com
DocumentRoot "D:/wamp/www/newblog.com/public"
ServerName newblog.com
ErrorLog "logs/newblog.com.log"
CustomLog "logs/newblog.com.log" common
</VirtualHost>
~~~
**訪問:**

**使用github做為版本管理:**
步驟:
1. 在github上創建一個新倉庫,獲取項目的git地址,如:https://github.com/webjust/my_first_laravel_blog.git
2. 本地安裝好git bash
3. 進入項目文件夾
4. git命令
~~~
git init
git add -A
git commit -m 'init new project'
git remote add origin https://github.com/webjust/my_first_laravel_blog.git
git push -u origin master
~~~
5. 大功告成,部署成功。每次修改代碼后,就可以更新你的版本啦!

