Skip to content

Commit 26bb9c1

Browse files
committed
Initial Sample App commit
1 parent 54bdd07 commit 26bb9c1

File tree

6 files changed

+581
-7
lines changed

6 files changed

+581
-7
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*Issue #, if available:*
2+
3+
*Description of changes:*
4+
5+
6+
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

.gitignore

+174
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/node,macos,visualstudiocode,vim
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,macos,visualstudiocode,vim
3+
4+
### macOS ###
5+
# General
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Icon must end with two \r
11+
Icon
12+
13+
# Thumbnails
14+
._*
15+
16+
# Files that might appear in the root of a volume
17+
.DocumentRevisions-V100
18+
.fseventsd
19+
.Spotlight-V100
20+
.TemporaryItems
21+
.Trashes
22+
.VolumeIcon.icns
23+
.com.apple.timemachine.donotpresent
24+
25+
# Directories potentially created on remote AFP share
26+
.AppleDB
27+
.AppleDesktop
28+
Network Trash Folder
29+
Temporary Items
30+
.apdisk
31+
32+
### Node ###
33+
# Logs
34+
logs
35+
*.log
36+
npm-debug.log*
37+
yarn-debug.log*
38+
yarn-error.log*
39+
lerna-debug.log*
40+
41+
# Diagnostic reports (https://nodejs.org/api/report.html)
42+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
43+
44+
# Runtime data
45+
pids
46+
*.pid
47+
*.seed
48+
*.pid.lock
49+
50+
# Directory for instrumented libs generated by jscoverage/JSCover
51+
lib-cov
52+
53+
# Coverage directory used by tools like istanbul
54+
coverage
55+
*.lcov
56+
57+
# nyc test coverage
58+
.nyc_output
59+
60+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
61+
.grunt
62+
63+
# Bower dependency directory (https://bower.io/)
64+
bower_components
65+
66+
# node-waf configuration
67+
.lock-wscript
68+
69+
# Compiled binary addons (https://nodejs.org/api/addons.html)
70+
build/Release
71+
72+
# Dependency directories
73+
node_modules/
74+
jspm_packages/
75+
76+
# TypeScript v1 declaration files
77+
typings/
78+
79+
# TypeScript cache
80+
*.tsbuildinfo
81+
82+
# Optional npm cache directory
83+
.npm
84+
85+
# Optional eslint cache
86+
.eslintcache
87+
88+
# Microbundle cache
89+
.rpt2_cache/
90+
.rts2_cache_cjs/
91+
.rts2_cache_es/
92+
.rts2_cache_umd/
93+
94+
# Optional REPL history
95+
.node_repl_history
96+
97+
# Output of 'npm pack'
98+
*.tgz
99+
100+
# Yarn Integrity file
101+
.yarn-integrity
102+
103+
# dotenv environment variables file
104+
.env
105+
.env.test
106+
107+
# parcel-bundler cache (https://parceljs.org/)
108+
.cache
109+
110+
# Next.js build output
111+
.next
112+
113+
# Nuxt.js build / generate output
114+
.nuxt
115+
dist
116+
117+
# Gatsby files
118+
.cache/
119+
# Comment in the public line in if your project uses Gatsby and not Next.js
120+
# https://nextjs.org/blog/next-9-1#public-directory-support
121+
# public
122+
123+
# vuepress build output
124+
.vuepress/dist
125+
126+
# Serverless directories
127+
.serverless/
128+
129+
# FuseBox cache
130+
.fusebox/
131+
132+
# DynamoDB Local files
133+
.dynamodb/
134+
135+
# TernJS port file
136+
.tern-port
137+
138+
# Stores VSCode versions used for testing VSCode extensions
139+
.vscode-test
140+
141+
### Vim ###
142+
# Swap
143+
[._]*.s[a-v][a-z]
144+
!*.svg # comment out if you don't need vector files
145+
[._]*.sw[a-p]
146+
[._]s[a-rt-v][a-z]
147+
[._]ss[a-gi-z]
148+
[._]sw[a-p]
149+
150+
# Session
151+
Session.vim
152+
Sessionx.vim
153+
154+
# Temporary
155+
.netrwhist
156+
*~
157+
# Auto-generated tag files
158+
tags
159+
# Persistent undo
160+
[._]*.un~
161+
162+
### VisualStudioCode ###
163+
.vscode/*
164+
!.vscode/settings.json
165+
!.vscode/tasks.json
166+
!.vscode/launch.json
167+
!.vscode/extensions.json
168+
*.code-workspace
169+
170+
### VisualStudioCode Patch ###
171+
# Ignore all local history of files
172+
.history
173+
174+
# End of https://www.toptal.com/developers/gitignore/api/node,macos,visualstudiocode,vim

README.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
## My Project
1+
# AWS Elastic Beanstalk Node.js Sample App
22

3-
TODO: Fill this README out!
4-
5-
Be sure to:
6-
7-
* Change the title in this README
8-
* Edit your repository description on GitHub
3+
This repository contains a sample Node.js web application built using [Express](https://expressjs.com/), meant to be used as part of the AWS DevOps Learning Path.
94

105
## Security
116

app.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const express = require('express');
2+
const app = express();
3+
const port = 8080;
4+
5+
app.get('/', (req, res) => res.send('Hello World!'));
6+
7+
app.listen(port);
8+
console.log(`App running on http://localhost:${port}`);

0 commit comments

Comments
 (0)