Open ghost opened 3 years ago
Week 1 Step 2 ⬤⬤◯◯◯◯◯◯◯ | 🕐 Estimated completion: 5-20 minutes
week1
week1/helloworld.js
, write and export a JS function hello
that returns "Hello World"week1
branch move on:exclamation: Do not merge the branch!!
:bulb: Tip: When we tell you to name a file called directory/thefile.js
, the first part before the /
is a directory (otherwise known as a folder).
If you run node helloworld.js
in the terminal, the output should be Hello World
Note: From now on, you will never need to close an issue. The Counselor will do that for you, create new issues, and new comments for further instructions!
No worries, check this out to help resolve the issue.
:bulb: TIP: If you want to re-run a check without comitting something else, check this out.
An IDE is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of at least a source code editor, build automation tools, and a debugger. Although there are hundreds of IDEs to choose from, we are going to use Visual Studio Code due to its popularity and integration with Azure (via extensions and libraries).
Note: Dark Theme is our personal favorite, but feel free to choose whichever theme you like best. Go to this site to view your options!
Check out this awesome documentation about how to set up Git on your local computer
:exclamation: Don't forget to git pull
before making any changes to your local repo!!
JavaScript enables the ability to export functions in a program so that you can access them in other parts of the program via the import statement. In this case, we want to export your programs in order for CounselorBot to check your code.
:bulb: Try to not use the web editor! Commit from your command line.
Start out by downloading Git. Then, open your command line.
Navigate to the directory in your command line where you want to keep your repository.
Tip: Use
cd ./your-directory
to change directories,pwd
to find out where you are, andls
to list files & directories. More information is here.
:exclamation: Don't forget to git pull
before making any changes to your local repo!! This gets any changes that were made by the bot.
Week 1 Step 3 ⬤⬤⬤◯◯◯◯◯◯ | 🕐 Estimated completion: 10-15 minutes
In this step, you will be using Postman to test the CataaS API by sending a GET request.
CATAAS is a RESTful API that exclusively delivers images of cats. The main feature is that we can change the properties of images, add text, truncate the image, add a filter and more. It's not an API with many real-world applications, but it's perfect for learning.
Interested in playing around with the API? Documentation is here.
In this step, we'll be using a software called Postman to test an API. Postman is a debugging tool for RESTful APIs, which allows you to test both pre-existing, community made APIs, or your own self-made APIs, without having to write any HTML test code!
You can sign up for Postman here.
Open up Postman and try it out yourself:
color
(color of the text) and size
(font size)Click Send
to get your cat picture
Week 1 Step 1 ⬤◯◯◯◯◯◯◯◯ | 🕐 Estimated completion: 5-20 minutes
GitHub
This week, you will be going through steps to set up tools needed to be successful in this camp. If you are already familiar with some, feel free to skip to the end and complete the task to move on.
✅ Tasks:
test
.About Me
section in theblog.md
file in root.test
, make a pull request to your main branch, naming itAdding self introduction
and add a detailed description of your contribution. Then merge the pull request.What is GitHub?
GitHub is a industry-standard platform allows developers to save and collaborate on code. You can use GitHub to manage your files, changes in your project, version control (the ability to revert back to previous versions of your code as well as versions developed by other programmers), and more.
Check out "The Github Flow" for more information on issues, pull requests, committing, and branches!
If you want to learn more about what it is and how to use it, try taking this GitHub Learning Lab Course. After finishing it, you will have a strong understanding of all the features GitHub has to offer.
✍️Vocabulary
#### Repositories Repositories (or repos) are essentially **folders where you can store files of code.** The repo of our camp was duplicated into your account when you clicked "Create Template" so that you can commit changes and complete each lesson. #### Issues For our camp, each week is placed inside an issue. Only when you complete the week (committing the necessary code and commenting), will the issue close and you can move on to the next issue. Don’t worry – committing changes is easier than it sounds. *On usual repositories in the contributing world issues are tasks or bugs that need to be completed or fixed.* #### Fork If you want to contribute to someone else's code, you would "fork" it. This creates a copy of the code under your account that you can make changes to. Create a fork when you **want to make changes to someone else's code and contribute to it.** #### Branch Creating a **branch** on a repository is like forking a repository. You would do this when you **want to make changes to your code without harming a working version.** #### Pull Request Once you make changes on **a forked repository or another branch,** you might need to bring the changes into the "main" repository. This allows YOUR changes to be visible in the main project! *You are basically asking for permission to "merge" your changes." **This allows you to:** * Collaborate on code * Make comments * Review the contributions made #### Command Line Interface A Command Line Interface (CLI) is your computer's visual application for accessing its operating system. There are different types of CLIs for different operating systems, such as Terminal for MacOs and PowerShell for Windows. If you have Windows, make sure to also install [Git Bash](https://git-scm.com/downloads) for a better tool. In upcoming issues, we will refer to your CLI as your Terminal or Command Line, but remember that they mean the same thing!Key functions you should be familiar with after this task include: