Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A1 Submisison (Hunter Caouette) #114

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 8 additions & 67 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,16 @@ Assignment 1 - Hello World: Basic Deployment w/ Git, GitHub, Glitch

*DUE: Thursday, August 29th by 11:59 AM (before the start of class!)*

This assignment is a "warm-up" exercise.
You will simply deploy the starting Web site that you will use this term to [Glitch](http://www.glitch.com/).
Hunter Caouette
https://a1-hcaouette.glitch.me/

Treat this assignment as a chance to get up to speed on Git, GitHub, and Glitch.
If you already know these, great.
However, if you're new to them, spend several hours practicing, experimenting, and reading documentation.
In other words, don't just get your website up and done. You will need skills with these tools throughout the rest of the course.

Assignment details
---

Do the following to complete this assignment:

1. Fork the starting project code in GitHub. This repo contains:
* the server code, `server.js`
* A starting `index.html` file that you will edit as described below
* A package.json file that helps configure Glitch
* This README
2. Edit `index.html` to show the following information about you:
* your name and class at WPI (e.g. class of 2020) Note: Do not put any contact or personal information that you do not potentially want other people outside of this class to see.
* your major(s) and minor(s)
* previous computer science courses that you have taken at WPI
* your experience with the following technologies and methods (none, some, a lot)
* HTML
* CSS
* Java
* JavaScript
* Ruby
* Python
* unit testing
3. Test your project to make sure that when someone goes to your main page, it displays correctly. You can do this locally by simply running `node server.js` from within the assignment directory.

4. Modify the README file according to the specification below.
5. Commit and push all your changes to GitHub.
6. Deploy your project to Glitch. You can do this by [importing the repo from GitHub](https://medium.com/glitch/import-code-from-anywhere-83fb60ea4875)
7. Ensure that your project has the proper naming scheme (guide follows) so we can find it.
8. Create and submit a Pull Request to the original repo.

Naming and URL Scheme
---

You must use a consistent naming scheme for all projects in this course.
If we can't find it, we can't grade it.

By default Glitch often assigns your application a random name. To change it, click on the project dropdown menu in the upper left corner of Glitch. You will then see an additional text field displaying the project name in the resulting menu; click here to edit the name.

The name scheme should be `a1-yourGitHubUsername`.
The `a1` will need to be updated to `a2`, `a3`, and so on in future projects.

Resources
---

If you need a JavaScript/HTML/CSS refresher, see [Technology Fundamentals by Scott Murray](http://chimera.labs.oreilly.com/books/1230000000345/ch03.html#_html) and/or [JavaScript Codeacademy](https://www.codecademy.com/en/tracks/javascript).

If you need a Git/GitHub refreseher, see [GitHub Bootcamp](https://help.github.com/categories/bootcamp/), the [GitHub Guides](https://guides.github.com/) (especially the ones on Hello World, and Understanding the GitHub Flow, and Forking Projects), and [CodeSchool's Try Git Course](https://www.codeschool.com/courses/try-git).

Sample Readme (delete the above when you're ready to submit, and modify the below so with your links and descriptions)
---

Charlie Roberts
http://a1-charlieroberts.glitch.me

This project shows ...
This project shows

## Technical Achievements
- **Proved P=NP**: Using a combination of...
- **Solved AI**: ...
- Using Bootstrap, made website mobile responsive
- Using Bootstrap, made a navbar for the website that can be expanded

### Design Achievements
- **Re-vamped Apple's Design Philosophy**: Shown in `style.css`, the code...


- Used Bootstrap to make the website more aesthetically pleasing
- Centered boxes, content organization, text and background formatting, etc.
- Included images, hosted on imgur
44 changes: 44 additions & 0 deletions exStyles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
body{
background-color: DarkSlateGray;
color: BlanchedAlmond;
font-family: Abel;
}

.contentBox{
border-width: 1px;
border-style: solid;
border-color: BlanchedAlmond;
border-radius: 5px;
}

.imgFrame{
padding: 0;
overflow: hidden;
}

.centerBox{
text-align: center;
}

.navbar{
border-bottom: 1px solid BlanchedAlmond;
padding-bottom: 0px;
margin-bottom: 15px;
}

.navbar-brand{
padding-bottom: 0px;
margin-bottom: 0px;
}

.navbar-brand a{
padding-bottom: 0px;
margin-bottom: 0px;
}

.navbar-brand span{
padding-bottom: 0px;
margin-bottom: 0px;
font-size: 44px;
color: BlanchedAlmond;
}
112 changes: 92 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,100 @@
<!doctype html>
<html lang="en">
<head>
<title>CS4241 Assignment 1</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!--Bootrap overwrite modifications-->
<link href="exStyles.css" rel="stylesheet">


<title>a1-hcaouette -- CS4241 Assignment 1</title>
</head>
<body>
<h1>Information about [Your name here]</h1>
<p>
[Self introduction]
</p>
<p>
[Major and other information]
</p>
<p>
[Other things]
</p>

<h2>Experience</h2>
<p>
Working experience
</p>
<ul>
<li>IBM/Rational</li>
<li>WPI</li>
</ul>
<!--top level container object, encompasses the entire page-->
<div class="container-fluid">

<!--navigation bar-->
<nav class="navbar navbar-expand-lg navbar-light">
<!--logo and name-->
<a class="navbar-brand" href="https://github.com/hcaouette/a1-gettingstarted">
<img src="https://i.imgur.com/bfmHsdG.jpg" width="50" height="60" class="d-inline-block align-top" alt="img">
<span>Hunter Caouette</span>
</a>
</nav>

<!--main content-->
<div class="row justify-content-center"><!--row 1-->
<div class="col"></div><!--left spacer-->
<div class="col centerBox">
<h1>Hunter Caouette</h1>
</div>
<div class="col"></div><!--right spacer-->
</div><!--close row 1-->

<!--row 2-->
<div class="row justify-content-center">
<!--left spacer-->
<!-- <div class="col"></div>
<div class="col"></div> -->
<div class="col-8 col-lg-2 contentBox">
<p>
Hello 4241, My name is Hunter Caouette. I'm a Junior Computer Science
Science major minoring in Chinese. Next term I'll be going to Hangzhou,
China for my IQP. I'm a member of Beta Theta Pi, and I like to play Magic:
The Gathering and Cook in my free time. This is actually my second class
with Prof Roberts (3041), and I'm really looking forward to this term.
</p>
</div>
<div class="col-8 col-lg-2 contentBox imgFrame">
<img src="https://i.imgur.com/yVg8o5c.jpg" class="d-inline-block align-top" alt="img">
</div>
<!--right spacer-->
<!-- <div class="col"></div>
<div class="col"></div> -->
</div><!--close row 2-->

<!--row 3-->
<div class="row justify-content-center">
<!--left spacer-->
<!-- <div class="col"></div>
<div class="col"></div> -->
<div class="col-8 col-lg-2 contentBox">
<h3>Classroom Experience</h3>
<ul>
<li>3733</li>
<li>3041</li>
</ul>
</div>
<div class="col-8 col-lg-2 contentBox">
<h3>Language Experience</h3>
<ul>
<li>HTML - some</li>
<li>CSS - some</li>
<li>Java - a lot</li>
<li>JS - some</li>
<li>Ruby - none</li>
<li>Python - some</li>
<li>Unit Testing - none</li>
</ul>
</div>
<!--right spacer-->
<!-- <div class="col"></div>
<div class="col"></div> -->
</div><!--close row 3-->

</div><!--end container-->





<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>
Binary file added res/HunterProfile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/HunterProfile2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ const server = http.createServer( function( request,response ) {
case '/index.html':
sendFile( response, 'index.html' )
break
case '/exStyles.css':
sendFile( response, 'exStyles.css' )
break
case '/res/HunterProfile.jpg':
sendFile( response, '/res/HunterProfile.jpg' )
break
case '/res/HunterProfile2.jpg':
sendFile( response, '/res/HunterProfile2.jpg' )
break
default:
response.end( '404 Error: File Not Found' )
}
Expand All @@ -19,7 +28,7 @@ server.listen( process.env.PORT || port )

const sendFile = function( response, filename ) {
fs.readFile( filename, function( err, content ) {
file = content
File = content
response.end( content, 'utf-8' )
})
}