Cours Devops - instructeur Wassim Abidi Seance nr 1 : 12.07.2024 Home work: Github Simple Node.js/Express.js Project
For Windows: Link to Download the official .exe file locally and excute it. Git
For Linux: Command to excute on your shell.
apt-get install git
- Créez un projet simple Node.js/Express.js sur votre machine locale.
- Initialisez un dépôt Git dans le dossier du projet (git init).
- Faites un premier commit avec un fichier README.md décrivant votre projet (git add README.md et git commit -m "Initial commit with README").
- Créez un dépôt sur GitHub et poussez votre projet local vers ce dépôt (git remote add origin <URL-du-dépôt> et git push -u origin master).
- Modifiez un fichier dans votre projet (par exemple, ajoutez une nouvelle route dans votre application Express).
- Faites un commit et poussez ces modifications vers GitHub.
- Créez une nouvelle branche pour ajouter une fonctionnalité (par exemple, git checkout -b new-feature), faites un commit de cette nouvelle fonctionnalité, et poussez cette branche vers GitHub.
- Depuis l'interface de GitHub, créez une Pull Request pour fusionner votre nouvelle fonctionnalité dans la branche principale.
Préparez vos questions et difficultés rencontrées pour la prochaine session