Git Product home page Git Product logo

hs-intro-web-student-directory-meteor-web-development's Introduction

Getting to Know You...

For our first class project, we will be creating a student directory with profiles for everyone in the class.

Fork and clone this project to get started. We'll walk through the code together as a class.

Structure

The structure of this project looks something like this:

├── README.md
├── css
│   ├── css style sheets
│   └── fonts
│       └── font files
├── img
│   ├── lots of images here
│   └── students
│       ├── student_name_background.jpg
│       ├── student_name_index.jpg
│       └── student_name_profile.jpg
├── index.html
├── js
│   └── javascipt files
└── students
    └── student_name.html

Files you will need to alter:

  • The only file you'll alter is index.html.

Files you will need to add:

  • Add three pictures to the img/students folder (they can be jpg or png files):
    • A background picture
    • A picture for the index page
    • A picture for the profile page
  • Add one HTML file to the students/ folder. Copy the HTML from student_name.html into the new file you've created - you'll be using it as a template for your profile.

Getting Started

Fork and clone clone this repo.

Take a look at index.html and students/student_name.html in the browser. You can do this by entering in terminal e

  • Make a new HTML file in the students/ folder. The file name should be the name of the student you're creating the profile for.

    • For instance, we would create a file zoe_perez.html in the main students folder.
  • Add the three photos detailed above to the img/students folder. The student you're writing the profile for may have to email you their desired pictures or send you links to them, etc.

    • For instance, we would add the pictures titled zoe_perez_background.jpg, zoe_perez_index.jpg, and zoe_perez_profile.jpg to the students folder that is inside the img folder.
    • File endings are case sensitive. When adding an <image\> tag, make sure that the image source is identical to the name of the image file.
  • Once you've completed the profile, open up index.html. Use the preexisting template as a model and add a section for your profile.

Bonus

Once you've finished all the text and image changes to your own student page, feel free to make the page your own. Think about how you can add other HTML elements to your page.

Already familiar with HTML and CSS? Take a stab at the styling of the page. Try changing the background colors, fonts, and text colors. This is your chance to make your mark, so make it bold!

Stage and Commit Changes

  • Once you're happy with the profile you've created and the changes you've made to the index page, enter git status in terminal. The the files you've altered, index.html, should appear in the "Tracked Files" section and the files you've created (like the images) should appear in the "Untracked Files" section.

  • Next, you'll need to enter git add . in terminal to add the files.

  • Last, you need to commit your work by entering in terminal git commit -m "enter a description of your work here"

  • If you type git status, you should see "nothing to commit, working directory clean". If you type git remote -v, it should display something like:

remote url
origin https://github.com/table-member's-github-name/deploy-on-day-1...git (fetch)
origin https://github.com/table-member's-github-name/deploy-on-day-1...git (push)

Push Up Your Branch

  • Now it's time to push to push up the changes to your repo. Enter in terminal git push origin branch-name

  • To confirm this push worked you can do two things:

    • Type git branch -a which will show the remote branch on github.com you just created when you pushed.
    • You could also go to the url of the forked repo. Notice the section that looks like branches. You should be able to click on that arrow and to see a dropdown. From this dropdown, select the name of the branch you've been working on.

Final Steps

It's time to submit a pull request on the original repo.

  • The first step is to go to the forked repo on your account.
  • From this new view, click on pull request on the right-hand menu. The green button with two arrows that looks like this green pull request will also work.
  • On this new page, click the green button that says "New pull request". This will take you to a form. Fill out the form and click "Submit".

Congratulations, you've completed your first assignment!

Resources

Issues

A common issue is not being able to authenticate with GitHub. You need to use HTTPS/SSH correctly when cloning the repository in order to be authenticated with GitHub. Checkout and follow:

View Getting to Know You... on Learn.co and start learning to code for free.

hs-intro-web-student-directory-meteor-web-development's People

Contributors

vanessadean avatar victhevenot avatar fs-lms-test-bot avatar fislabstest avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.