Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dillson committed Sep 14, 2018
0 parents commit 64c3049
Show file tree
Hide file tree
Showing 1,929 changed files with 192,864 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
12 changes: 12 additions & 0 deletions Dockerfile
@@ -0,0 +1,12 @@
from node:8

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 8080
CMD [ "node", "index.js" ]
40 changes: 40 additions & 0 deletions index.js
@@ -0,0 +1,40 @@
// index.js
const path = require('path')
const express = require('express')
const exphbs = require('express-handlebars')
const port = 8080

const app = express()

app.engine('.hbs', exphbs({
defaultLayout: 'main',
extname: '.hbs',
layoutsDir: path.join(__dirname, 'views/layouts')
}))
app.set('view engine', '.hbs')
app.set('views', path.join(__dirname, 'views'))

app.use(express.static('public'))

app.get('/', (request, response) => {
response.render('home')
})

app.get('/vke', (request, response) => {
response.render('vke')
})

app.get('/cloudbees', (request,response) => {
response.render('cloudbees')
})

app.get('/images', (request,response) => {
response.render('image')
})

app.listen(port, (err) => {
if (err) {
return console.log('the server threw an error', err)
}
console.log(`server is listening on ${port}`)
})
1 change: 1 addition & 0 deletions node_modules/.bin/handlebars

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/uglifyjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

224 changes: 224 additions & 0 deletions node_modules/accepts/HISTORY.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions node_modules/accepts/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 64c3049

Please sign in to comment.