Upgrade to Pro — share decks privately, control downloads, hide ads and more …

開發流程與工具介紹

 開發流程與工具介紹

Shengyou Fan

December 06, 2014
Tweet

More Decks by Shengyou Fan

Other Decks in Programming

Transcript

  1. ໢᜾༬᧸ ӡߦ؀ڥ 䆋ॺฏ୆ ൛ຊ߇੍ ఔࣜ։ᚙྲྀఔ SourceTree pagoda box google chrome

    UwAmp cmder ࢦྩࣥߦ ݪ࢝ᛰḤሜٴܥ౷։ᚙ Netbeans ݪ࢝ᛰḤሜ composer ౟݅؅ཧ phpMyAdmin ࢿྉݿૢ࡞
  2. git ൛ຊ߇੍ • ຊ޻࡞๥࢖༻త൛ຊ߇੍ܥ౷ҝ gitɼੋ໨ લ։์ݪ࢝ᛰࣾ܈㚎࠷೤໳తܥ౷ɻଖ෼ ࢄࣜతಛੑɼᩋ䱾ଟ஌໊։ᚙݪ࢝ᛰೈᱪ ౎ੋ࢖༻ git ၏൛ຊ߇੍

    • git ੋಁա໋ྩఏࣔࣈݩૢ࡞ɼҝ߱௿೉ ౓ɼຊ޻࡞๥࠾༻ SourceTree ೈᱪɼಁա ᅷܕԽհ໘ڭላ git ૢ࡞ ˒ ჩߟɿhttps://www.atlassian.com/git/
  3. ॄኄੋ SourceTreeʁ • ༝ Atlassian ެ࢘։ᚙత git ᅷܕԽհ໘ೈ ᱪɼᩋૢ࡞ gitɺᖣ᧸

    git ઢᅷ౎Ꮣಘߋ؆ қɺ௚᧷ • ໨લࢧԉ Windows ٴ Mac ၷݸฏ୆ɼ୞ ཁ؆ᄸతḼ࡭बՄҎ໔අ࢖༻ɼؐՄ౥഑ BitbucketɺGithub ౳ฏ୆࢖༻
  4. ઃఆ UwAmp • ઃఆ portɿ • http 8000 ٴ mysql

    3306 • ઃఆ php ൛ຊɿ • php 5.5.15 • ઃఆ Document Rootɿ • ઃఆࢸ C:\UwAmp\www\{ሢҊ໊᜝}
  5. ಈ UwAmp • ઃఆ DocumentRoot ࢸ C:\UwAmp\www \test\ • ࡏ

    Netbeans ཫ৽⃧Ұݸ index.phpɼฒ༌ ೖҰࠣ php ఔࣜᛰ • ଧ։ᖣ᧸ثɼᖣ᧸ http://localhost:8000 • एཁ੾׵ෆಉሢҊɼଇґࠑྲྀఔ੾׵
  6. ls [opt] {path} • List = ྻग़䈕Ҋྻද - [ -a

    ] ྻग़ॴ༗(แؚᯅ᤽)䈕Ҋ - [ -l ] Ҏྻදతํࣜఄݱ • ൣྫɿ $"ls"%la
  7. cd {path} • Change Directory = ੾׵޻࡞໨㑚 - { .

    } ᙛલ໨㑚 - { .. } ճ౸্Ұ૚໨㑚 • ൣྫɿ $"cd"../ $"cd"Projects\blog
  8. rm [opt] {file} • Remove = ႟আ䈕Ҋ - [ -r

    ] ႟আࢿྉᇄ - [ -f ] ڧ੍႟আ (ෆᨑ໰) • ൣྫɿ $"rm"test.txt $"rm"%r"test_folder $"rm"%rf"*.txt
  9. mv {from} {to} • Move = Ҡಈ/ॏ৽໋໊䈕Ҋ - { from

    } ိݯ࿏ኸ - { to } ໨ඪ࿏ኸ • ൣྫɿ $"mv"test.txt"../ $"mv"test.txt"test.html
  10. ઃఆࢦྩডኸ • ডኸઃఆ - ଧ։ cmder/config ࢿྉᇄɼཫ໘త aliases ٴ *.lua

    ੋՄҎ၏ࣗఆᎷॆ/ઃఆత - {ডኸ}={ࢦྩ ჩᏐ} • ൣྫɿ artisan=php"artisan"$* pj=cd"%USERPROFILE%\Projects
  11. ॄኄੋ composerʁ • ૣظత PEAR ౟݅ࢄ䆋ํࣜ༗ॾଟ໰୊ɼ Ҽࠑݱ༝ composer + packagist

    औ୅ɼ੒ ҝ PHP ৽Ұ୅౟݅؅ཧᢛࢄ䆋ํࣜ • ࠑᄸݩሡ؆հزݸ޻࡞๥။༻౸తࢦྩɼ ᩋላһख़ࣩزݸඞཁత composer ࢦྩૢ ࡞ ˒ ߋৄࡉత composer ڭላɿhttps://speakerdeck.com/jaceju/begining-composer
  12. composer {cmd} --help • ෦㟨 composer ࢦྩՄ઀डֹ֎ჩᏐɼए Ұ࣌๨هჩᏐత࢖༻ํࣜ࣌ɼՄઌՃ -- help

    ԙ֘ࢦྩޙํɼଈᰖࣔ֘ࢦྩత㘸໌ จ݅ɼ଴֬ೝ༻๏ޙ࠶ॏ৽༌ೖࢦྩ • ൣྫɿ $"composer"list"%%help $"composer"update"%%help
  13. composer create-project • ໨લ֤ओྲྀᐽՍ౎ੋ༝ composer త౟݅ ૊߹ࣕ੒ɼࣕ composer ݱࢧԉಁա create-project

    ࢦྩိ҆᧋֤ᐽՍతሢҊ݁ ߏ • ൣྫɿ $"composer"create%project"laravel/laravel"{your%project% name}"%%prefer%dist
  14. ॄኄੋ phpMyAdminʁ • ࢿྉݿຊ਎ੋҰ୆ओػ (server)ɼཁૢ࡞ ࢿྉݿత㚎༰ɼզ၇ඞधಁաऴ୺ػ (client) ࿈ઢޙɼԕ୺ૢ࡞ • phpMyAdmin

    ੋҰݸ༝ PHP Ḥሜత MySQL Clientɼಁա໢ทᖣ᧸తํࣜɼզ၇बՄ Ҏԕ୺ૢ߇ࢿྉݿతઃఆ