NOTE: You may utilize your favorite LLM or other web resources if you are stuck
on something for this particular prelab assignment.
The instructions below make the following assumptions:
- You have experience working with git from the command-line.
- You have already installed VS Code.
- You already have a functional GitHub account.
- On your computer, open the command line and clone the course repo and
remove the remote called origin:
git clone https://github.com/tsergeant/db_homework.git
cd db_homework
git remote remove origin
- In GitHub, create your own private, empty repository by
visiting https://github.com/new.
- Name it
db_homework
- Select Private
- Do NOT add a README, .gitignore, or license (leave it
completely empty)
After the repo is created, add the instructor (terrys@gmail.com) as
a collaborator on your repo.
- Back on your computer, setup the remotes so that “origin” points to your
github repo and “upstream” points to the course repo:
git remote remove origin
git remote add origin https://github.com/<your-username>/db_homework.git
git branch -M main
git push -u origin main
git remote add upstream https://github.com/tsergeant/db_homework.git
- Verify that the remotes are correct with:
git remote -v
You should see:
origin git@github.com/<your-username>/db_homework.git (fetch)
origin git@github.com/<your-username>/db_homework.git (push)
upstream https://github.com/tsergeant/db_homework.git (fetch)
upstream https://github.com/tsergeant/db_homework.git (push)
- Push your initial copy to your private repository:
git push -u origin main
- Leave a comment in Canvas on this assignment that provides a
link to your github repo.
- Read the README.md
- found in the root directory of your repo to get
an understanding of the organization of the structure.
- Read docs/setup-guide.md
- found in the repo and follow all the instructions
for steps 1–5 listed in the document.
- Make sure it works
- by visiting localhost:5050 in your browser. When
you do you should be given a login screen
Follow these learning steps:
- Visit: https://chatgpt.com
- In a new chat prompt, click the + icon to the left of the search box
and click the "Study and Learn" tool.
- Enter the following prompt: “Explain to me the meaning of this file:”
and then paste in the contents of the docker-compose.yml file in the
root of your repo.
- You will likely be asked about what you already know. If you've never
used docker before and you don't know what it is, then say that. Just
give an honest answer to the question.
- Then continue to interact with it until you have completed a line-by-line
explanation of the YAML file and you have a reasonably good understanding
of what it accomplishes.
- In the chat window click on the Share link at the top-right of the screen
and then click on the Copy Link icon. Then paste that link in the
comment section for this lab day assignment in Canvas.
When this assignment is finished you should have left two comments on this assignment
in Canvas:
- A link to your github repo.
- A link to your Study and Learn session with ChatGPT.