Project Setup
by Tomas Trescak· Setup

0 / 700 XP

Presentation Transcript
If you prefer text to video, check out the transcript of the presentation above

Slide 1 ----------- Part 1: In this section, we explore how this course interacts with GitHub Classroom. But of course, let's hear a joke first! "What did the hacker’s out-of-office reply say? … “Gone phishing.” Slide 2 ----------- Part 1: GitHub Classroom is a powerful tool designed to streamline the way coding assignments are distributed and reviewed in educational settings. It uses GitHub to provide a space where instructors can easily create, distribute, and grade programming assignments. Part 2: With Github Classroom, you can work either in isolation or in groups, depending on the needs of assignment. Using code reviews or early commits, you can get early feedback on your work, get help or discuss possible options. Slide 3 ----------- Part 1: Let's start on our first Github Classroom assignment. First, make sure you have an existing Github account and that you are logged in. Part 2: Accept your assignment by clicking on the following link. Part 3: This will take you to the assignment acceptance page displayed. Part 4: Please click on: Accept this Assignment. Slide 4 ----------- Part 1: Once you accept your assignment, you are greeted with this page. You now have two options. Part 2: You can use the provided online editor, saving you some hassle setting up the software. While this may seem convenient, it is affected by the strength and reliability of your internet connection. Part 3: The second and recommended options is to clone your files to your computer from the provided url and use your local development environment to work on your assignment. We will now explore both options. Slide 5 ----------- Part 1: If you do not want to install applications and tools on your local computer, you are welcome to use Github Codespaces, an online editor that allows you to work remotely on your files. Part 2: To start the online editor, click on “Open in GitHub Codespaces”. Part 3: After initialisation, it will open a new instance of your codespace. The user interface looks exactly the same as your local Visual Studio Code, and there is no need to learn a new development environment. Slide 6 ----------- Part 1: To work on your assignment on your computer, you must download the files from the repository. Make sure that git is installed. Part 2: First, mark the name of the repository that was created for you for this assignment. It is displayed under you're ready to go after you accept your assignment. If you no longer see this page. you have two options. Part 3: You can click on the following link to accept the invitation again and see the repository link. Part 4: Alternatively, login to your Github account. Part 5: You should see the created repository with your code in the list of your repositories. Slide 7 ----------- Part 1: To download this assignment to your computer, please create a new folder where you will be storing all your assessments from this course, typing the first three commands in our example in your terminal or command console. Part 2: Then clone the files into this new folder. Make sure you use the url of the repository that you obtained in the previous slide. Slide 8 ----------- Part 1: You have one more option and that is to clone your files directly in Visual Studio Code. First, navigate to Github.com and open your repository with this assignment. Part 2: Click on the green "Code" button. Part 3: Copy the URL of this repository. Part 4: Please watch this short tutorial and make sure you use the url of your repository not the demo url. Please pause this presentation to watch the video. Slide 9 ----------- Part 1: Once you download your files, please use "Open Folder" menu to open the downloaded folder. When you open page.tsx file, you should see the following result. Part 2: But what about all those red squiggly lines? Yup, those are all errors! But do not despair, these are easy to fix. The reason for so many errors is that we did not install the libraries that power this exercise. Let's fix that. Slide 10 ----------- Part 1: Again, you have two options. First, you can open a command line or terminal and in the project directory run command pnpm i. Part 2: The second option is to do this in Visual Studio Code. You can open the terminal by clicking on "View" in the top menu and then clicking "Terminal". You can also use a handy keyboard shortcut, ctrl + tilde. Then, in the VSCode terminal type pnpm i and hit enter. Slide 11 ----------- Part 1: If all went well, the red squiggly lines should have disappeared. Sometimes, it is worth re-starting Visual Studio Code after package install. Before going to the next section, make sure that all errors disappeared.

Description
All the extra information about this section

[https://skillpies.s3.ap-southeast-2.amazonaws.com/courses/3myFj3C3s45Lw7am7p/sections/UcDgJBMv00Wy2R2uh3/github.png] It is time for our first interaction with Github Classroom. GitHub Classroom is a powerful tool designed to streamline the way coding assignments are distributed and reviewed in educational settings. It leverages GitHub, a popular version control and collaboration platform, to provide a space where instructors can easily create, distribute, and grade programming assignments. Each student receives their repository for an assignment, ensuring that their work is organised and isolated. This setup simplifies submission and grading processes and introduces students to practices used in real-world software development, like using Git for version control and collaborating through pull requests. GitHub Classroom is an excellent resource for enhancing learning and teaching experiences in computer science courses. 🚀 ACCESSING THE ASSIGNMENT Make sure you have an existing Github [https://github.com/] account, connected to Github Classroom [https://classroom.github.com/] and that you are logged in. Accept your assignment by clicking on the following link $ASSIGNMENT1$ [$ASSIGNMENT1$]. This will take you to the assignment acceptance page displayed below. Please click on “Accept this Assignment” [https://skillpies.s3.ap-southeast-2.amazonaws.com/courses/3myFj3C3s45Lw7am7p/sections/UcDgJBMv00Wy2R2uh3/Screenshot%202024-04-19%20at%2012.23.58.png]Figure 1: Accepting your assignment Once you accept your assignment, you are greeted with the page below: [https://skillpies.s3.ap-southeast-2.amazonaws.com/courses/3myFj3C3s45Lw7am7p/sections/UcDgJBMv00Wy2R2uh3/Screenshot%202024-04-19%20at%2012.24.36.png]Figure 2: Accepted Assignment You now have two options: using either the locally downloaded files or using the online editor. OPTION 1: ONLINE EDITOR If you do not want to install applications and tools on your local computer, you are welcome to use Github Codepsaces, an online editor that allows you to work remotely on your files. To start the online editor, click on “Open in GitHub Codespaces”. After initialisation, it will open a new instance of your codespace. [https://skillpies.s3.ap-southeast-2.amazonaws.com/courses/3myFj3C3s45Lw7am7p/sections/UcDgJBMv00Wy2R2uh3/Screenshot%202024-04-19%20at%2012.39.56.png]Figure 3: Github Codespaces OPTION 2: LOCAL PROJECT To work on your assignment on your computer, you must download the files from the repository. Make sure that git is installed. First, mark the name of the repository that was created for you for this assignment. It is displayed in the Figure 2 under you're ready to co. In my case, the URL is https://github.com/WesternSydneyUniversity/introduction-to-react-tomitrescak [https://github.com/WesternSydneyUniversity/introduction-to-react-tomitrescak]. Please make sure you use your own personalised URL.  > If you have already closed the assignment welcome page, you can go to > https://www.github.com [https://www.github.com] and you can find the newly > created repository in the list of your repositories. To do that, please create a new folder where you will be storing all your assessments from this course, and then we will clone the files into the new folder. Thus, in your terminal (command line) type: mkdir Course-FullStackDevelopment-GTD cd Course-FullStackDevelopment-GTD git clone <url of your repository> Once you clone your files to a local folder, please open that folder in Visual Studio Code [https://code.visualstudio.com]. All the script files in the src/app folder, contain many errors (see red squiggles in Figure 1). The problem is that we did not install the packages that the application requires, including React. In the terminal of your editor (the bottom right pane) please type the following command pnpm install and hit enter. This will download all the packages to your project folder. If you want to explore which packages the application needs, please see package.json in the root folder. [https://skillpies.s3.ap-southeast-2.amazonaws.com/courses/3myFj3C3s45Lw7am7p/sections/UcDgJBMv00Wy2R2uh3/Screenshot%202024-04-19%20at%2012.39.56.png]Figure 1: Github Codespaces with Errors  
Maggie

Discuss with Maggie
Use the power of generative AI to interact with course content

Maggie is a generative AI that can help you understand the course content better. You can ask her questions about the lecture, and she will try to answer them. You can also see the questions asked by other students and her responses.

Discuss with Others
Ask questions, share your thoughts, and discuss with other learners

Join the discussion to ask questions, share your thoughts, and discuss with other learners
Setup
React Fundamentals
10 points
Next.js
10 points
Advanced React
Databases
10 points
React Hooks
Authentication and Authorisation
10 points
APIs
CI/CD and DevOps
Testing React
Advanced Topics