Skip to content

Commit

Permalink
added jquery, bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
abner committed Aug 25, 2016
1 parent cdb9b35 commit f017928
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ jspm_packages

# Optional REPL history
.node_repl_history

#Bower
bower_components
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use('/static', express.static('bower_components'));

app.use('/', routes);
app.use('/users', users);
Expand Down
22 changes: 22 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "spotbuy",
"description": "",
"main": "",
"authors": [
"abner <[email protected]>"
],
"license": "MIT",
"homepage": "https://github.com/abnervr/spotbuy",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"jquery": "^3.1.0",
"bootstrap": "^3.3.7"
}
}
3 changes: 2 additions & 1 deletion views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ doctype html
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
link(rel='stylesheet', href='/static/bootstrap/dist/css/bootstrap.min.css')
script(src='/static/jquery/dist/jquery.min.js')
body
block content

0 comments on commit f017928

Please sign in to comment.