All of this will be inside of the Ubuntu VM that I created before the session. See https://naddeo.org/2019/02/reddit-coding-experiment.html for setup instructions.
Open a Terminal by clicking the black icon in the vertical side menu.
# Install node/npm LTS. We'll do this together.
# Add npm/node to the path
echo 'export PATH=~/node-v10.15.1-linux-x64/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
# Install create-react-app
npm i -g create-react-app
# Create our TypeScript project
mkdir workspace
cd workspace
create-react-app reddit-coding-exp-0 --typescript
# Open the code in vscode
cd reddit-coding-exp-0
code .
# Start the build server
npm start
# If you run into an error, you may need to do this
npm i --save [email protected]
-
Install the react developer tools Chrome extension.
-
Build our target hello world TODO app.
-
Add redux and move our state to it.
-
Try a calculator app next. That will be an independent project and it should be a good excuse to struggle a bit alone so that you generate some questions for next time. The stream part is definitely good but it it's still a supplement for normal independent work.
- Start by prototyping the html
- Move to deciding what the state should look like
- Ask quetions on the twitter page. A subreddit might work better for this. We'll see.