... | @@ -144,17 +144,17 @@ We can **decompress** this file as usual to have access to all the files and fol |
... | @@ -144,17 +144,17 @@ We can **decompress** this file as usual to have access to all the files and fol |
|
|
|
|
|
### Creating your repo
|
|
### Creating your repo
|
|
|
|
|
|
In this course, all your work will be stored in a **public Github repo**. You will fork from [this repo,](https://github.com/2023-2024-pne/pne-studentslab) In other words, you will have your own branch. Just click on the 'fork' button on the top right and complete the requested information (select your username for the namespace and set a project slug you are happy with).
|
|
In this course, all your work will be stored in a private **GitHub repository**, managed through **GitHub Classroom**. I've created an assignment for each of you.
|
|
|
|
|
|
After some seconds **your repository will be ready**. You can have a look at your main Github page to check that it is there.
|
|
To get started, click the link provided in Aula Virtual and select your university account.
|
|
|
|
|
|
Your repo is ready for start working!
|
|
After a few seconds, **your repository will be ready**. You can have a look at your main Github page to check that it is there.
|
|
|
|
|
|
But before you start, make sure **you add me as a project member**. Go to the *Members* section (under *Project information*), click the button that says *Invite members*, and invite me as a *Maintainer*! You can use my Github's username (sarroutbi). Do not set an expiration date.
|
|
Your repo is ready for start working!
|
|
|
|
|
|
## Working with Pycharm and Github
|
|
## Working with Pycharm and Github
|
|
|
|
|
|
For developing in python we are going to use the [PyCharm IDE](https://www.jetbrains.com/pycharm/download/?gclid=Cj0KCQiA-JXiBRCpARIsAGqF8wU4k1AvuaMc2tQ7gsbn23gdFIMNlczsnPDi-WyXa-cKkdUgxcbW7hYaAn2uEALw_wcB&gclsrc=aw.ds#section=linux) (Community edition 2022.2). It is already installed in the lab environment. If you like, you can activate the professional version with your university credentials.
|
|
For developing in python we are going to use the [PyCharm IDE](https://www.jetbrains.com/pycharm/download/?gclid=Cj0KCQiA-JXiBRCpARIsAGqF8wU4k1AvuaMc2tQ7gsbn23gdFIMNlczsnPDi-WyXa-cKkdUgxcbW7hYaAn2uEALw_wcB&gclsrc=aw.ds#section=linux) (Community edition 2024.2). It is already installed in the lab environment. If you like, you can activate the professional version with your university credentials.
|
|
|
|
|
|
### Opening PyCharm
|
|
### Opening PyCharm
|
|
|
|
|
... | @@ -168,7 +168,7 @@ If this is **the first time** it is opened, some configuration windows will appe |
... | @@ -168,7 +168,7 @@ If this is **the first time** it is opened, some configuration windows will appe |
|
|
|
|
|
The initial window will show up (maybe the program requests some other information, but that would be easy to handle):
|
|
The initial window will show up (maybe the program requests some other information, but that would be easy to handle):
|
|
|
|
|
|

|
|

|
|
|
|
|
|
### Cloning your working repo
|
|
### Cloning your working repo
|
|
|
|
|
... | @@ -200,9 +200,9 @@ Before doing our first Python program, let's make some **changes** to the **READ |
... | @@ -200,9 +200,9 @@ Before doing our first Python program, let's make some **changes** to the **READ |
|
|
|
|
|
Add some text. Notice how the color of the README file has changed. It is indicating that a change has been made: the **current README** file is **different** than the one stored in the **repository**.
|
|
Add some text. Notice how the color of the README file has changed. It is indicating that a change has been made: the **current README** file is **different** than the one stored in the **repository**.
|
|
|
|
|
|
Let's **commit** that change. Click on the README.md file to select it, include a commit message and select **Commit and Push**
|
|
Let's **commit** that change. Click on the README.md file to select it, include a commit message and select **Commit**
|
|
|
|
|
|

|
|

|
|
|
|
|
|
You will be asked by your username and mail. Fill them and click on "Push"
|
|
You will be asked by your username and mail. Fill them and click on "Push"
|
|
|
|
|
... | @@ -213,7 +213,7 @@ Congrats! You've done your first commit! |
... | @@ -213,7 +213,7 @@ Congrats! You've done your first commit! |
|
|
|
|
|

|
|

|
|
|
|
|
|
But you have committed your change to the **local repository** in your computer. It is not yet in Github. You have to execute a **push command**. Click on the option at **VCS/Git/Push**.
|
|
But you have committed your change to the **local repository** in your computer. It is not yet in Github. You have to execute a **push command**. Click on the option at **Git/Push**.
|
|
|
|
|
|

|
|

|
|
|
|
|
... | | ... | |