Closed ghost closed 3 years ago
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.
Make sure to use Dark Theme unless you want to live life on the edge...
hello
that returns "Hello World
" in a file named helloworld.js
. Commit the file to the root directory of a new branch called week1
.helloworld.js
to the root directory of a new branch week1
in this repository to move on!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!
You can install Postman from the Chrome Store as a Chrome extension, or sign up here
Try it out yourself:
color
(color of the text) and text
(font size)Interested in playing around with the API? Documentation is here.
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.
One more tip: don’t forget to save! Rewriting code can be challenging and extremely frustrating, so save yourself the trouble!
Example output:
Hello! The current time is: 17 : 41 : 34 PM
This time we'll try developing locally. Follow the directions in this link to set up and deploy your first Azure Function right in your local machine.
HTTP_ENDPOINT
so we can check your function. Remember to commit the function's code in a file named httptime.js
to the root of the week1
branch!Note: Every time you make a new commit to week1
, we will check your function by making a request.
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.
Get started by creating another new HTTP Trigger Azure Function with the already created Function App.
You should return the images in JSON format in the body.
body: {
cat1: your-first-catpicture-in-base64,
cat2: your-second-catpicture-in-base64,
names: [name1, name2]
}
For fun: Once your API successfully returns the images in base64, you can see what they look like using this website.
SECOND_ENDPOINT
so we can check your function. Remember to commit the function's code in a file named twocatz.js
to the root of the week1
branch!Note: Every time you make a new commit to week1
, we will check your function by making a request.
Create a new HTTP trigger function in your Azure portal along with the Function App. Navigate to your Function App. This is not the function code, but the actual app service resource.
We will be using the parse-multipart
and node-fetch
npm packages.
:pencil: Task 5: Make sure you've created a new Function App and installed parse-multipart
and node-fetch
.
In the left tab, scroll down to Console.
Enter these commands in order:
npm init -y
npm install parse-multipart
npm install node-fetch
FUNCTION_URL
. Then, commit your package.json
file to the root directory of the week1
branch.Remember: we check to see if you've placed your secrets everytime you commit!
Please complete after you've viewed the Week 1 livestream! If you haven't yet watched it but want to move on, just close this issue and come back to it later.
Help us improve BitCamp Serverless - thank you for your feedback! Here are some questions you may want to answer:
Added issues for improvements
What was confusing about this week? If you could change or add something to this week, what would you do? Your feedback is valued and appreciated!
Added issues for improvements
That's it for Week 1, move on to Week 2 in your new issue!
Learning 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.
GitHub
:question: What is Github?
GitHub is a platform that is widely used in the tech industry, that enables code hosting and makes collaboration for coding a seamless process. 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. [Get started with GitHub](https://guides.github.com/activities/hello-world/)Check out "The Github Flow" for more information on issues, pull requests, committing, and branches!
:question: Help! How does Github work?
:question: What is a Repo?
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. 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.:exclamation: How can I use GitHub Desktop to commit my code?
1. Download GitHub desktop. This is one way you can commit changes to the cabin repo to complete each lesson here. 2. To have access to the cabin repository on GitHub desktop, the name of your repo needs to be entered in the top-left corner in the box with placeholder “Filter” and “Clone Repository” should be selected. 3. Click “Pull Origin” once the repo is cloned to pull to GitHub desktop the most current version of the learning lab. 4. Open VSCode by clicking the button “Open in Visual Studio Code”. The files in the learning lab will be opened in VS code, and now you can complete the lesson (adding the necessary code). You need to add your code in a new file, so make sure you create a new file under the folder in VSCode. When you are done creating your new file and adding the necessary code, save the file and return to GitHub desktop. 5. The change will be shown. Add a summary and description of your change and then click “Commit to main”. Next, click “Push origin”, to push the change made in VSCode to the website. *Remember, each step and lesson is posted on the repo on github.com. You will commit changes when the lesson instructs you to, and once you click “Push origin” and refresh the GitHub page, the issue will close and you can move on.*:exclamation: Help! I don't know how to use it and I need more information.
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.One very important rule... Don't work on your code in the web editor. This is bad practice, and you will regret it later.
:question: What should I do instead?
Install Github Desktop and commit from your local computer. We'll go over code editors next if you don't have one to work on your code locally. You can also use git on your commandline.:pencil: Task 1: Create a new branch named
test
, add a sentence introducing yourself to the end of the README.md file, and commit the change totest
. Then, make a pull request to your main branch and merge the edits.Pull Request Guidelines
Adding self introduction
Key functions you should be familiar with after this task include:
:camping: To move on, make sure you commit the change and merge the branch!