Share
Embed
Transcript
15 slides
-
MEAN Stack - המדקה תיינב web applications תויגולונכטב שומישב
הכורכ םילכו םינוש , םע תודדומתהל : דסמ םינותנ , תרשה דצב תולועפ , לופיט חוקלה דצב לש הגצהו םינותנה . והמ MEAN ? "MEAN is a fullstack JavaScript platform for modern web applications" MongoDB - as the database Express - as the web framework AngularJS - as the frontend framework NodeJS- as the server platform ךשמהב תונקתה ... -
Git, GitHub - המדקה Git איה דוק תואסרג תרקב
תכרעמ החתופש תכרעמ חותיפ רובע רוקמב סקוניל הלעפהה . לכ רובע הליעומו הבושח תונמוימ איה תואסרג תרקב לש ליעי שומיש חתפמ דחוימבו רתוי שי םא חתפממ דחא טקיורפב ברועמש . GitHub תורש אוה git ןכו םלועב ירלופופה ןיילנוא לוהינ תכרעמ יטקייורפ הנכות , תיתרבח תשר ןנעב דועו . סרוקב שמתשנ ב - github הרוצב תבחרנ . -
דציכ ב שמתשהל - ?GitHub תא ןקתה git רושיקב
: scm.com/downloads - git https:// ב שמתשה וא - command line ב ןובשח רוצ - Github ( םניח ) רושיקב : github.com :// https רוצ repository ( תואבה תויפוקשב ) תא ןיקתהל ןתינ GitHub Desktop ל - MAC ל וא - WINDOWS רושיקב - / https://desktop.github.com -
תריצי repository – תורשפא 1 : Log onto github
Click on + to add repository Enter name and click create repository Add .gitignore, good to have a README Click on Settings to control access (Collaborators tab) On PC, do git clone -
תריצי repository – תורשפא 2 : Create your Project
Create your local repo git init git commit –m “Initial commit” Create a repo on github (תמדוקה תיפוקשב) Add a “shortname” for your git repository git remote add [shortname] [url] git remote add origin https://github.com:[user name]/[repository name].git Ex: git remote add origin https://github.com:hadarp/GitDemo.git git commit -m “<message>” Remember: You can copy/paste the repo url from github Push your code onto github git push –u [remote-name] [branch-name]. Ex: git push –u origin master – enter username/password -
workflow Person A Setup project & repo push
code onto github edit/commit edit/commit pull/push Person B clone code from github edit/commit/push edit… edit… commit pull/push This is just the flow, specific commands on following slides. It’s also possible to create your project first on github, then clone (i.e., no git init) -
Collaborating via github - cloning git clone adds the
remote repository under the name origin git clone https://github.com:[user name]/[repository name].git Ex: git clone https://github.com:hadarp/GitDemo.git -
Git commands command description git clone url [dir] copy a
git repository so you can add to it git add files adds file contents to the staging area git commit records a snapshot of the staging area git status view the status of your files in the working directory and staging area git diff shows diff of what is staged and what is modified but unstaged git help [command] get help info about a particular command git pull fetch from a remote repo and try to merge into the current branch git push push your new branches and data to a remote repository others: init, reset, branch, checkout, merge, log, tag -
GitHub Wiki - המדקה םשכ םיבושח תוקידבו דוק תביתכש
, םירחאל רזוע ןיוצמ דועית טקיורפ תא ביחרהלו שמתשהל . לכ רגאמ GitHub דועית רובע קלח םע עיגמ , ארקנש Wiki . GitHub Wiki אוה םוקמ רגאמב , ןתינ וב ןכות ףתשל טקיורפה לע בר ןוגכ : וב שמתשהל ךיא , הז ךיא ןכו ןנכות האלה . ןתינ תורישי ךורעל ב - GitHub ךרוע תרזעב וא טושפ טסקט תולעהלו חא " םייונישה תא כ . םינוש םישמתשמל רגאמב הכירע תואשרה רידגהל ןתינ . סרוקב , רוצינ Wiki טקיורפה רובע . -
GitHub Wiki - אמגוד דומע תפסוהל ב שדח -
Wiki לע ץחל ךרועב שמתשה טסקטה ידכ ףדה ןכות תא ףיסוהל ךלש . תראתמה העדוה ןזה תא ףדה שדחה ףיסומ התאש . םייונישה תא רשאל ידכ ץחל לע תועצמאב םג ךורעל ןתינ GitHub Desktop -
םורופ / צ ’ סרוקה תצובקו טא ב ןובשח
תחיתפ רחאל - github , ל רבחתהל שרדנ : צ ' טא / סרוקה םורופ , רושיקב : https://gitter.im/jce-il/se-class/2016bM סרוקה תצובק Students2016bM , רושיקב : https://github.com/orgs/jce-il/teams/students2016bm -
התיכ ליגרת ורצ הייקית ארקנ הל בשחמב ex1
לש תואסרג בקעמ הילע וליעפה git דוקה תא הילא וקיתעה אבה : https://github.com/robi-y/seproject-team-template הליכמ וז היירפס : ל סיסב דוק MEAN Readme יסיסב לש באהטיג צ דוע ' סרוקה ךלהמב םירפו -
תישיא המישמ 1 תישיא המישמ 1 : http://jce-il.github.io/se-class16b/morea/webapp/experience-
webapp-deploy-starter.html תישיא המישמ תשגה 1 : http://jce-il.github.io/se-class16b/assessments/#assessment- personal1-deploy-webapp יפוס השגה ךיראת ולו " ז : 1/3/2016 http://jce-il.github.io/se-class16b/schedule/ -
Free on-line book: http://git-scm.com/book Git tutorial: http://schacon.github.com/git/gittutorial.html
Reference page for Git: http://gitref.org/index.html Git website: http://git-scm.com/ Git Resources