Facebook has written a very good introduction for the React library. You can find it from React Tic-Tac-Toe Tutorial.
The tutorial can be done either in your own internet browser (1) using the CodeSandbox service or (2) locally on your computer. If you're unfamiliar with any software development, we recommend using CodeSandbox for now.
- Open the React Tic-Tac-Toe Tutorial.
- "Fork" the setup sandbox
- May the source be with you
- Git
- Node.js and NPM
- Any console or terminal. For windows, we recommend Git Bash. However, PowerShell and cmd.exe are not recommended.
- Any code editor. If you are new to programming, we recommend starting with Visual Studio Code
If you are using GNU/Linux, install the packages from your package manager instead. For example, Node.js is available on the these package managers.
-
Clone this repository:
git clone https://github.com/koodi101/lesson1-react-tictactoe.git
Alternatively you can fork the repository, i.e. make a clone of it to your GitHub account. Clone that preferably using the
SSH
link.You are going to have to sign up to GitHub if you want to fork the repository. This is required later on the course anyways...
-
Open the cloned folder
-
Start the local development server using Node.js
-
Install Node.js and NPM.
-
Open your favorite shell.
-
Go to the cloned directory:
cd lesson1-react-tictactoe
-
Install dependencies:
npm install
-
Run the app:
npm start
-
Open browser in http://localhost:8000
-
Install Docker
-
Open your favorite shell.
-
Go to the cloned directory:
cd lesson1-react-tictactoe
-
Run the app:
docker-compose up
-
Open browser in http://localhost:8000