Skip to content

A guided lab for junior high school students on prompt engineering

Notifications You must be signed in to change notification settings

githubtraining/guided-prompt-engineering-junior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 Build Your Own Habit Tracker App! 🌟

Hey there! In this cool project, you're going to create your very own habit tracking web app. It's going to be AMAZING!

What You'll Make 🚀

A super awesome web app that helps you track your daily habits - like doing pushups, drinking water, or practicing coding. You'll be able to:

  • Add new habits you want to track
  • Check them off each day
  • See how well you're doing over time

What You'll Learn 🧠

  • How to chat to GitHub Copilot to create things you can use
  • How to create app with HTML, CSS, Python and JavaScript

Getting Started 😎

  1. Log into your GitHub user account (or create one if you don't have any)

  2. Click the [Use this template] button at the top of this page and select [Create a new repository].

  3. Fill in the form and click [Create repository]

Wait for a minute to copy the files over and page to load

  1. Click the [Code] button, then select the [Codespaces] tab
  2. Click [Create codespace on main] button to start your coding workspace

Wait a minute while your coding space loads (it's like loading a video game!)

  1. Once it's ready, you'll see your project files on the left side, and a Habit Tracking app at the centre
  2. Open GitHub Copilot Chat, and say "Hello"

Wait for GitHub Copilot Chat to load and reply back to you

  1. Select [Agent] mode and [Claude Sonnet 3.5] model, and start chatting with the following prompts!

Wait till you see a Habit Tracker starter app loaded and Copilot greet you back.

Guided Prompt Engineering ⚙️

Hey there! Here's what to do with these prompts:

  1. Copy each prompt one at a time
  2. Paste it into the GitHub Copilot Chat window

Wait for Copilot to give you a response (this might take a few minutes)

  1. Follow Copilot's instructions to build your app step by step
  2. If you get stuck, ask your instructor for help!

Try these prompts in order - each one builds on the one before:

💡 When you first use GitHub Copilot, your browser might prompt you twice to enable it. Just follow the instructions, and you'll be good to go!

🗨️ Prompt 1

My coach gave me this code, I have no idea what this is, can you help me?

🗨️ Prompt 2

How do I run it?

🗨️ Prompt 3

Add a champion badge when I can do the habit for 5 consecutive days

🗨️ Prompt 4

Give me positive message every day so I can stay motivate, even offline.

🗨️ Prompt 5

The app looks kinda boring, can you change it with Flintstone theme?

🗨️ Prompt 6

I want to share my progress with friends, can you add the share buttons for Facebook, TikTok and X?

Get Creative 🎨

Awesome! Now you've built an app that looks great, works perfectly for tracking habits, and keeps you motivated. What other cool features would you like to add to make it even better?

Here are some examples:

🗨️ Prompt: Add daily reminder

I want to download the habit into my calendar with daily reminder

🗨️ Prompt: Make a graph

I don't like the boring list of check-in dates in the habit page, instead displaying the check-in dates with interesting graph 

Need Help? 🆘

If your app disappears or stops running, ask Copilot for help by saying:

My app has disappeared, help me run the app.

Or, if you'd like to fix it yourself, go to Task Runner side window and select Run Habit Tracking App.

Don't hesitate to ask your instructor or friends if you get stuck—everyone needs help sometimes!

About

A guided lab for junior high school students on prompt engineering

Resources

Stars

Watchers

Forks