You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Congratulations on taking some of your first steps into full stack development!
3
+
Congratulations on taking some of your first steps into full stack development.
4
4
5
5
So why did you decide to click and join this course? Ideally, you are a learner who:
6
6
7
7
- Understands HTML tags
8
8
- Understands classes and methods in JavaScript
9
9
- Understands Git and GitHub
10
10
11
-
If you understand the topics above, you can start learning modern frontend development with React!
11
+
If you understand the topics above, you can start learning modern frontend development with React.
12
12
13
13
So why do we learn React?
14
14
15
-
React has growing popularity in the tech industry because of its simplicity. With a simple knowledge of HTML and Javascript, picking up React shouldn't be too bad.
15
+
React has growing popularity in the tech industry because of its simplicity. With a simple knowledge of HTML and JavaScript, picking up React shouldn't be too bad.
16
16
17
17
### What we will be building
18
18
19
-
So what are we going to be building today? We are going to build a gradebook for teachers! Take a look at [our solution](https://githubtraining.github.io/react-solution/). Here's what the finished app looks like.
19
+
So what are we going to be building today? We are going to build a gradebook for teachers! Take a look at [our solution](https://githubtraining.github.io/react-solution/) to see how the finished app looks.
Before starting this course, we recommend completing the [Introduction to GitHub Learning Lab](https://lab.github.com/githubtraining/introduction-to-github) first with the option for working locally in the command line.
6
+
7
+
### What's in our React App
8
+
9
+
Let's take a look of what our React App looks like right now. We will go through our file structure which is a [standard React setup](https://facebook.github.io/create-react-app/docs/getting-started). You will not be editing any files in this step, but the structure is important for future code references.
The `package.json` file is our roadmap of the app. It tells us the name of the app, the version, the different dependencies we need to run our app, and more.
16
+
17
+
##### `public/`
18
+
19
+
The `public/` directory contains our `index.html` file. The `index.html` file directs us to the rest of the web application that requires additional processing.
20
+
21
+
##### `src`
22
+
23
+
This is where most of your code will go. You'll notice we have `App.jsx` along with other `jsx` files. But, what is `jsx`? Think of `jsx` as a mix between `html` and `javascript`. We can write tags, functions, and classes. Take a look at the `App.jsx` file. Some of that contents might look familiar from `html`, like `<div/>` tags.
24
+
25
+
## Step 1: Set up the project locally
26
+
27
+
In this repository, we have two branches - `master` and `changes`. We will be working off of the `changes` branch. Let's go ahead and get started.
28
+
29
+
### :keyboard: Activity: Clone the repository and install Node
30
+
31
+
1. Open your terminal
32
+
- If you're using a Windows operating system, we recommend downloading and using [git bash](https://git-scm.com/downloads) as your terminal
33
+
2. Change directories into a location where you want to keep this project
34
+
3. Clone this repository: `git clone {{ repoUrl }}`
35
+
4. Move into the repository's directory: `cd intro-react`
36
+
5. Checkout to the `changes` branch: `git checkout changes`
37
+
6. Open the `intro-react` folder in your favorite text editor
38
+
7. Check for Node installation: `node -v`
39
+
8.[Install Node](https://nodejs.org/en/download/) if it is not installed
40
+
9. In your repository folder, install the necessary packages: `npm install`
41
+
10. Start the React Application: `npm start`
42
+
43
+
Your browser should automatically open `http://localhost:3000/`, and you should see our barebones gradebook application.
44
+
45
+
You'll see that our app can't really do anything! All we have is three buttons! We are going to add all the functionality.
0 commit comments