Skip to content

Commit

Permalink
set up app
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicole committed Dec 24, 2015
1 parent aa01930 commit 6b7878d
Show file tree
Hide file tree
Showing 11 changed files with 180 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node server.js
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
README.md
This is my personal site.
55 changes: 55 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
body,
html {
background: #333D47;
font-size: 16px;
font-family: 'Open Sans', sans-serif;
color: #8d6e91;
}

textarea {
min-width: 50%;
min-height: 250px;
border-radius: 3px;
}
textarea:focus {
outline: none;
}

a,
a:active,
a:focus,
a:visited {
color: #6e8991;
text-decoration: none;
}
a:hover {
color: #698c96;
}

.button {
display: inline-block;
min-width: 100px;
max-width: 500px;
padding: 8px;
color: #698c96;
border: 1px solid #698c96;
text-align: center;
outline: none;
text-decoration: none;
border-radius: 3px;
margin: 25px auto;
}
.button:hover,
.button:active {
background-color: #698c96;
color: #333D47;
}

.center-align {
text-align: center;
}


@media screen and (max-width: 960px) {

}
2 changes: 2 additions & 0 deletions dist/all.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var app = angular.module('dnicole', []);

1 change: 1 addition & 0 deletions dist/all.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var app=angular.module("dnicole",[]);
40 changes: 40 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
var gulp = require('gulp');

var jshint = require('gulp-jshint'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
connect = require('gulp-connect'),
express = require('express');

gulp.task('lint', function() {
return gulp.src('js/*.js')
.pipe(jshint())
.pipe(jshint.reporter('default'));
});

gulp.task('scripts', function() {
return gulp.src('js/*.js')
.pipe(concat('all.js'))
.pipe(gulp.dest('dist'))
.pipe(rename('all.min.js'))
.pipe(uglify())
.pipe(gulp.dest('dist'));
});

gulp.task('watch', function() {
gulp.watch('js/*.js', ['lint', 'scripts']);
});

// For development, but express will handle this in prod.
gulp.task('serve', function() {
connect.server();
});

// Default Task
gulp.task('default', ['lint', 'scripts', 'serve', 'watch']);

// I run on deploy!
// gulp.task('heroku:production', function() {
// console.log('starting up!');
// });
33 changes: 33 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Nicole Pank</title>
<meta name="description" content="Nicole Pank's portfolio">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<link rel="icon" type="image/x-icon" href="/images/favicon.ico" />

<link rel="stylesheet" type="text/css" href="/css/main.css" />
<script src="/node_modules/angular/angular.js"></script>
<script src="/js/app.js"></script>
</head>
<body ng-app="dnicole">
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<div class="center-align">
<div>
Hello World!
</div>
<a class="button" href="#">Button</a>
<a href="#">link link link</a>

</div>



</body>
</html>
2 changes: 2 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var app = angular.module('dnicole', []);

29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "dnicole",
"version": "1.0.0",
"description": "Nicole Pank's portfolio",
"main": "index.js",
"repository": {
"type": "git"
},
"author": "",
"license": "ISC",
"dependencies": {
"gulp": "^3.9.0",
"gulp-concat": "^2.6.0",
"gulp-connect": "^2.2.0",
"gulp-jshint": "^1.11.2",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.2.0",
"express": "~4.9.x",
"angular": "^1.4.7",
"mongodb": "^2.0.46"
},
"engines": {
"node": "0.10.x",
"npm": "2.1.14"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
15 changes: 15 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 5000));

// Ok, so I know it's wrong and bad to make root a static dir.
app.use(express.static(__dirname + '/'));

app.get('/', function(request, response) {
response.sendfile('index.html');
});

app.listen(app.get('port'), function() {
console.log('Node app is running on port', app.get('port'));
});

0 comments on commit 6b7878d

Please sign in to comment.