This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If your given node application has a different start command, replace the line in the script... | |
# rest of the userdata.sh script above.... | |
# Start the server | |
node . > stdout.log 2> stderr.log | |
# with... | |
# rest of the userdata.sh script above.... | |
# Start the server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Install Node and Git | |
yum update -y | |
curl -sL https://rpm.nodesource.com/setup_10.x | bash - | |
yum install -y nodejs git | |
# Make a directory to clone the application code to | |
mkdir -p /home/ec2-user/app && cd /home/ec2-user/app | |
git clone https://github.com/jcolemorrison/ec2-lb-api.git . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var path = require('path'); | |
var favicon = require('static-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
/** | |
* Route Imports | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="signup-container"> | |
<div class="col-md-12"> | |
<h3 class="signup-header">Signup as a New User</h3> | |
<hr> | |
<br> | |
</div> | |
<div class="signup-form"> | |
<form class="form-horizontal"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.signup-container{ | |
margin-top: 5em; | |
} | |
.signup-header{ | |
text-align: center; | |
color: $gray-light; | |
margin-bottom: 1em; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "angular-express-part1", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "NODE_ENV=production nodemon ./bin/www", | |
"test": "NODE_ENV=development nodemon ./bin/www" | |
}, | |
"dependencies": { | |
"express": "~4.0.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var debug = require('debug')('my-application'); | |
var app = require('../app'); | |
app.set('port', process.env.PORT || 3000); | |
var server = app.listen(app.get('port'), function() { | |
debug('Express server listening on port ' + server.address().port); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var path = require('path'); | |
var favicon = require('static-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var routes = require('./routes/index'); | |
var users = require('./routes/users'); |