Skip to content

Commit

Permalink
new changes made to dashboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravsaluja2006 committed Aug 1, 2014
1 parent b69704b commit f84b745
Show file tree
Hide file tree
Showing 206 changed files with 22,092 additions and 122 deletions.
Binary file modified Thumbs.db
Binary file not shown.
19 changes: 18 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@ var express = require('express')
, path = require('path'),
getMotherboards = require('./routes/getMotherboards'),
getProcessors = require('./routes/getProcessors'),
getMouse = require('./routes/getMouse'),
getKeyboards = require('./routes/getKeyboards'),
getMonitors = require('./routes/getMonitors'),
getOrders = require('./routes/getOrders'),
addProduct = require('./routes/addProduct'),
uploadImage = require('./routes/uploadImage');
nodemailer = require('./routes/nodemailer'),
addOrder = require('./routes/addOrder'),
uploadImage = require('./routes/uploadImage'),
deliverOrderService = require('./routes/deliverOrderService'),
getStatus = require('./routes/getStatus');


var app = express();

Expand All @@ -32,10 +41,18 @@ app.configure('development', function(){
});

app.get('/', routes.index);
app.get('/api/nodemail', nodemailer.send);
app.get('/users', user.list);
app.get('/api/getMotherboards', getMotherboards.findAll);
app.get('/api/getProcessors', getProcessors.findAll);
app.get('/api/getMouse', getMouse.findAll);
app.get('/api/getMonitors', getMonitors.findAll);
app.get('/api/getKeyboards', getKeyboards.findAll);
app.get('/api/getOrders', getOrders.findAll);
app.post('/api/deliver', deliverOrderService.save);
app.post('/api/getStatus', getStatus.save);
app.post('/api/addProduct', addProduct.save);
app.post('/api/addOrder', addOrder.save);
app.post('/uploadImage', uploadImage.save);

http.createServer(app).listen(app.get('port'), function(){
Expand Down
93 changes: 93 additions & 0 deletions motherboards.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
[
{
"Name":"Z97 EXTREME 3",
"Platform":"Intel",
"Manufacturer":"ASRock",
"Price":9990,
"img":"7ASROCK Z97 EXTREME 3.jpg"
},
{
"Name":"H81M-HDS",
"Platform":"Intel",
"Manufacturer":"ASRock",
"Price":3890,
"img":"ASROCK H81M-HDS (1150).jpg"
},
{
"Name":"H81MK",
"Platform":"Intel",
"Manufacturer":"ASUS",
"Price":3690,
"img":"ASUS H81MK (1150).jpg"
},
{
"Name":"M5A 97 LE (970)",
"Platform":"AMD",
"Manufacturer":"ASUS",
"Price":5650,
"img":"ASUS M5A 97 LE (970) AMD.jpg"
},
{
"Name":"M5A 99FX PRO",
"Platform":"AMD",
"Manufacturer":"ASUS",
"Price":10990,
"img":"ASUS M5A 99FX PRO (990 AMD.jpg"
},
{
"Name":"Z87PRO",
"Platform":"Intel",
"Manufacturer":"ASUS",
"Price":15990,
"img":"ASUS Z87PRO (1150).jpg"
},
{
"Name":"78LMT-S2",
"Platform":"AMD",
"Manufacturer":"Gigabyte",
"Price":2700,
"img":"GIGABYTE 78LMT-S2 AMD.jpg"
},
{
"Name":"78LMT-S2 USB3",
"Platform":"AMD",
"Manufacturer":"Gigabyte",
"Price":4050,
"img":"GIGABYTE 78LMT-S2 USB3 AMD.jpg"
},
{
"Name":"990XA-UD3",
"Platform":"AMD",
"Manufacturer":"Gigabyte",
"Price":9390,
"img":"GIGABYTE 990XA-UD3 AMD.jpg"
},
{
"Name":"B75M-D3V",
"Platform":"Intel",
"Manufacturer":"Gigabyte",
"Price":5190,
"img":"GIGABYTE B75M-D3V (1155).jpg"
},
{
"Name":"F2A55M-S1",
"Platform":"AMD",
"Manufacturer":"Gigabyte",
"Price":3090,
"img":"GIGABYTE F2A55M-S1 AMD.jpg"
},
{
"Name":"G1 SNIPER",
"Platform":"Intel",
"Manufacturer":"Gigabyte",
"Price":11390,
"img":"GIGABYTE G1 SNIPER (Z 77).jpg"
},
{
"Name":"DX79SR",
"Platform":"Intel",
"Manufacturer":"Intel",
"Price":19990,
"img":"INTELDX79SR (2011).jpg"
}
]
15 changes: 14 additions & 1 deletion nbproject/private/private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group/>
<group>
<file>file:/C:/Users/Gaurav/Desktop/Test/public/blank.html</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/app.js</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/public/appJs/controllers.js</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/routes/getStatus.js</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/public/partials/final.html</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/public/appJs/app.js</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/public/partials/status.html</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/public/partials/orders.html</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/public/appJs/services.js</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/routes/deliverOrderService.js</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/routes/nodemailer.js</file>
<file>file:/C:/Users/Gaurav/Desktop/Test/public/partials/mail.html</file>
</group>
</open-files>
</project-private>
20 changes: 20 additions & 0 deletions node_modules/nodemailer-smtp-transport/.jshintrc

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

2 changes: 2 additions & 0 deletions node_modules/nodemailer-smtp-transport/.npmignore

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

29 changes: 29 additions & 0 deletions node_modules/nodemailer-smtp-transport/Gruntfile.js

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

19 changes: 19 additions & 0 deletions node_modules/nodemailer-smtp-transport/LICENSE

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

128 changes: 128 additions & 0 deletions node_modules/nodemailer-smtp-transport/README.md

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

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

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

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

Loading

0 comments on commit f84b745

Please sign in to comment.