This is a repo for BabyDragon code written in Ruby. It's a Tamagotchi-style fire breather :)
Watch this video and follow along. Google for answers when you get stuck. Getting stuck is a good sign- it means you're trying new things and learning what to do next.
- Laptop
- Code editor- I used Atom
- Git
- Ruby This gives you access to irb, which you'll hear in the video and can use to test your code.
- Internet connection when making the commits up to GitHub
You can follow along with writing the code down- anywhere is fine, the main thing is to familiarize yourself with the vocabulary and flow.
As you follow along, write the code in a code editor like Atom and save the file to your computer. This means the file is "saved locally." Make sure to save the file with the ending ".rb" to denote that it's code written in Ruby.
Have Ruby installed so that as you follow along with the video and write your own code in Atom, you can run the code in your terminal using IRB and see how it works!
Using the command line, move your code from your local machine up to GitHub by
Adding an existing project to GitHub using the command line
- Email- set it up to be private
- Credentials- there are two main ways to do this- SSH or HTTPS. If you're doing HTTPS and your terminal asks you for credentials, it wants your GitHub username and your access token not your GitHub password. Make sure to save this somewhere safe! From GitHub: "For security reasons, after you navigate off the page, you will not be able to see the token again." and " Treat your tokens like passwords and keep them secret. When working with the API, use tokens as environment variables instead of hardcoding them into your programs."
Only head here after watching the video and following along. It's temptingly easy to get bogged down in reading and reading. These are good resources... and the best thing to do sometimes is to write.
-
_________,---------.____------.___ /_______ `--._______ `--.____ \\ /__.-' `-----.____ `--.____\\`_/_ ,' ___ `---.___ ___// `-. / _.-' )' ``---' \ \ | / | . ' | / / / | ' ___ ) | | | | | _/` _ ` _,' _ `/) ' | \_ `--._\__`--'_\-___ _,-' '-` ___ _/ `---.____ `--.__-_ /_)____, __/ ,`-' `------__> `-------(/(/-'-\)\)