We will be building out the first page of the MBoutique website
#####1. Open PHPStorm
You should be opening phpStorm to your lfz directory for all projects
Expand the mBoutique folder to view the project files
Make sure to add all project related files to the proper directory
- For this project it should be:
lfz/mboutique
#####2. Navigate to mBoutique in the terminal
Insert this command in the terminal tab
cd mboutique
& press enter
- this changes the directory to the mboutique folder
- If you get an error with the above command its probably because you are already within the correct directory
#####3. Create a feature grouping (Create feature branch)
Insert & execute these command in the terminal tab individually
git checkout master
& press enter
- The command above switches to the default branch
git checkout assignment_1
- Creating this feature groupings allow users to modify code without causing issues with the current functioning code.
- Any modifications to these files after branching can be undone
- "assignment_1" is the branch name.
- Create the HTML and CSS necessary to reproduce the MBoutique home/welcome page - Use the index.html file for your HTML - Use the style.css file for your CSS
- Use the design images for reference (Found in the assets folder)
- Break the page down into sections and build one section at a time. For example: - Header section - Body/Main content section - Footer section
- Keep in mind that there are multiple pages
- Notice the sections that are the same on all pages like the header and footer
- Design your HTML so that it will be easy to reuse the header and footer sections on all the pages
- Don't panic
- If you get stuck or have any issues use google or the LearningFuze forum
- If you are familiar with them, make use of the chrome developer tools to prototype out your changes.
- You can find more details on chrome developer tools on codeschool and other places.
- Test each CSS change as you implement it. It can be difficult to ascertain "what went wrong" if you do many lines of code and then test it.
- Pay attention to the gross details first, and then make a second pass for fine details.
Run below command in terminal tab
git add .
Saving files to Git registers the changed files in Git, allowing them to be grouped together by a message (commit)
Run below command in terminal tab
git commit -m "mboutique Assignment_1 - Eric Johnson"
- Eric Johnson should be replaced with your First & Last name
- Grouping files with a message allows those changes to be seen by others as a specific version of the code
Run below command in terminal tab
git push origin assignment_1
- When running the code above, the Git application will send all commits (groupings of saved files) to the remote location (github.com/[your-user-name]/mboutique indicated by origin), specifically to the feature branch/group assignment_1
####Step 4.1 Open your mboutique Repo in the browser
- The link Should follow this format github.com / [your user name] / mboutique
####Step 4.2 Click Pull request tab to open the pull request list
####Step 4.3 Click "New Pull request" button
####Step 4.4 Comparing Changes
During this step there are a hand full of highlighted things that need to be taken into consideration.
###The image below is just an example.
###Make sure to change the options according to the written directions below
base fork: Learning-Fuze/mboutique
base: C#_userName
- Here you will select the option that matches your username
- If you can not locate an option that has your username, contact an instructor
head fork: [your_user_name]/mboutique
- Here you will select the option that matches your username / mboutique
- If you can not locate an option that has your username / mboutique, contact an instructor
compare: assignment_1
- Here you will locate the branch name (or feature name) you created at the beginning of the assignment
- Github.com will let you know if the code can be merged automatically (without needing a manual merge)
- If the text says something other than "able to merge". Contact an instructor
- Sometimes a manual merge is necessary, it just has a couple more steps when completing the request (done by instructors at start)
- Once we have verified #1 - #4 and noted #5, we click the "Create Pull request" button (#5 in the image above)
####Step 4.4 Add details into the pull request
- Give the pull request a title, by default its the name of the last commit (package) message that was saved
- If you set the commit message above you should get get mboutique Assignment_1 - [you name first & last name] already pre populated in the Title field
- Don't assign a user. (An Instructor will select who this gets assigned too)
- Further into the cohort we will have students learn to review pull requests
- Click on "Create pull Request"
Within the Github.com UI another developer or in this case an instructor will review the Pull Request you made - Is your feature working. Collaboration happens through github UI & the notifications are sent through email when comments are added to pull requests
- Students should make modifications to there code based on the instructors feedback
- Instructors will be giving an initial assessment based on the pull request. Any additional collaboration after the instructor has been feedback will be on a requested basis only.
- In the LearningFuze workflow the pull requests are closed to indicate assessment has been given to the student and recorded.