Skip to content

brandlovers-team/code-academy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Code Academy - Learning Repository

AboutΒ Β Β |Β Β Β  StructureΒ Β Β |Β Β Β  Getting StartedΒ Β Β |Β Β Β  Submit WorkΒ Β Β |Β Β Β  Help

GitHub Slack Go Godog PostgresSQL GORM Redis

πŸŽ“ Code Academy | Brandlovers πŸ“š

Welcome to the Code Academy learning repository! This is your space to learn, practice, and grow as a programmer.

πŸ“š What is this repository?

This repository is designed as a collaborative learning environment where:

  • Instructors provide lessons and exercises
  • Students submit their work for review and feedback
  • Everyone learns together through code!

πŸ—‚οΈ Repository Structure

The repository follows this organized structure:

code-academy/
β”œβ”€β”€ README.md           # This file - your guide to the repository
β”œβ”€β”€ .gitignore         # Files that Git should ignore
└── [student-name]/    # Your personal folder (replace with your actual name)
    β”œβ”€β”€ lesson-01/     # Folder for lesson 1 exercises
    β”œβ”€β”€ lesson-02/     # Folder for lesson 2 exercises
    └── ...           # More lessons as you progress

Example Structure:

code-academy/
β”œβ”€β”€ john-doe/
β”‚   β”œβ”€β”€ lesson-01/
β”‚   β”‚   β”œβ”€β”€ hello-world.js
β”‚   β”‚   └── variables.js
β”‚   └── lesson-02/
β”‚       β”œβ”€β”€ functions.js
β”‚       └── arrays.js
└── jane-smith/
    β”œβ”€β”€ lesson-01/
    β”‚   └── my-first-program.py
    └── lesson-02/
        └── learning-loops.py

πŸš€ Getting Started for New Programmers

Step 1: Install Git

Git is a version control system that tracks changes in your code. Think of it as a "save game" system for your code!

  • Windows: Download from git-scm.com
  • Mac: Install via Terminal: brew install git (requires Homebrew)
  • Linux: sudo apt-get install git (Ubuntu/Debian) or sudo yum install git (Fedora)

Step 2: Clone the Repository

Cloning means downloading a copy of this repository to your computer:

# This command creates a copy of the repository on your computer
git clone [repository-url]

# Navigate into the repository folder
cd code-academy

Step 3: Create Your Personal Folder

Create a folder with your name (use lowercase and hyphens instead of spaces):

# Create your folder (replace 'your-name' with your actual name)
mkdir your-name

# Example: if your name is John Doe
mkdir john-doe

Step 4: Create Lesson Folders

For each lesson, create a new folder inside your personal folder:

# Navigate to your folder
cd your-name

# Create a lesson folder
mkdir lesson-01

# Navigate into the lesson folder
cd lesson-01

πŸ“ Submitting Your Work

Basic Git Workflow

Here's how to save and submit your work. Think of this as a 3-step process:

  1. Stage - Select which files to save
  2. Commit - Save the files with a description
  3. Push - Upload to the online repository
# 1. Check what files have changed
git status
# This shows you what files are new or modified

# 2. Add your files to the staging area
git add .
# The dot (.) means "add all changed files in current folder"
# You can also add specific files: git add filename.js

# 3. Commit your changes with a meaningful message
git commit -m "Add lesson 1 hello world exercise"
# The message should describe WHAT you did and WHY

# 4. Push your changes to GitHub
git push origin main
# This uploads your changes so instructors can see them

πŸ’‘ Commit Message Tips

Good commit messages help everyone understand what changed:

# βœ… Good commit messages:
git commit -m "Complete lesson 1 variables exercise"
git commit -m "Fix syntax error in functions.js"
git commit -m "Add solution for array sorting challenge"

# ❌ Avoid vague messages like:
git commit -m "Fixed stuff"
git commit -m "Updates"
git commit -m "asdfasdf"

πŸ“‹ Naming Conventions

Consistent naming helps keep the repository organized:

Folder Names

  • Use lowercase letters
  • Use hyphens instead of spaces
  • Be descriptive
βœ… Good: john-doe, lesson-01, bonus-exercises
❌ Bad: JohnDoe, Lesson 1, my stuff

File Names

  • Use lowercase letters
  • Use hyphens or underscores
  • Include the file extension (.js, .py, .html, etc.)
  • Be descriptive about what the file contains
βœ… Good: hello-world.js, calculate_average.py, index.html
❌ Bad: HelloWorld.js, file1.py, untitled.txt

πŸ› οΈ Common Git Commands Reference

# Check current status
git status

# View commit history
git log --oneline

# Pull latest changes from repository
git pull origin main

# Create and switch to a new branch (advanced)
git checkout -b feature-name

# Switch between branches (advanced)
git checkout branch-name

# See what changed in your files
git diff

# Unstage files (if you added by mistake)
git reset HEAD filename

# Discard local changes to a file
git checkout -- filename

❓ Troubleshooting Common Issues

"Permission Denied" Error

  • Make sure you have the correct access rights to the repository
  • Contact your instructor for access

"Merge Conflict" Error

  • This happens when two people edit the same file
  • Ask your instructor for help resolving conflicts

"Nothing to Commit" Message

  • This means no files have changed
  • Make sure you saved your files before committing

Forgot to Pull Before Starting Work

# Save your current work
git stash

# Pull the latest changes
git pull origin main

# Restore your work
git stash pop

πŸ“š Learning Resources

Git & GitHub

Programming Basics

🀝 Getting Help

If you're stuck:

  1. Check this README - The answer might be here!
  2. Google the error message - Someone else has probably had the same problem
  3. Ask a classmate - Collaboration is encouraged!
  4. Ask your instructor - That's what they're here for!

πŸ“Œ Important Notes for Students

  • Always pull before you start working to get the latest changes
  • Commit frequently - It's better to have many small commits than one large one
  • Write meaningful commit messages - Future you will thank present you
  • Don't commit sensitive information like passwords or API keys
  • Test your code before committing - Make sure it works!
  • Ask questions - There are no stupid questions when learning

🎯 Assignment Submission Checklist

Before submitting each assignment, make sure:

  • Your code is in the correct folder (your-name/lesson-XX/)
  • All files are saved
  • Your code runs without errors
  • You've added all new files with git add
  • You've committed with a descriptive message
  • You've pushed your changes with git push
  • You can see your changes on GitHub (web browser)

πŸ“– Glossary for Beginners

  • Repository (Repo): A folder that contains all your project files and their history
  • Clone: Download a copy of a repository to your computer
  • Commit: A saved snapshot of your changes
  • Push: Upload your commits to GitHub
  • Pull: Download changes from GitHub to your computer
  • Branch: A separate version of your code (like a parallel universe)
  • Merge: Combine changes from different branches
  • Fork: Create your own copy of someone else's repository
  • Pull Request (PR): Ask to merge your changes into the main repository

Remember: Everyone was a beginner once. Don't be afraid to make mistakes - that's how we learn! πŸš€

Happy coding! πŸ’»βœ¨

About

Repositorio para aulas de programacao da BL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages