Skip to content

Commit

Permalink
adding data.json file and add img Url for product
Browse files Browse the repository at this point in the history
  • Loading branch information
Mennatallah Ramadan authored and Mennatallah Ramadan committed Mar 5, 2019
1 parent b513fe6 commit e7a94cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
db.products.insert({"price":40.99,"title":"Vault Boy Bobble Head","imgUrl":"https://s3-us-west-2.amazonaws.com/devslopesvideo/vault.JPG"})
db.products.insert({"price":129.50,"title":"Link's Shield","imgUrl":"https://s3-us-west-2.amazonaws.com/devslopesvideo/shield.png"})
db.products.insert({"price":400,"title":"Lancer","imgUrl":"https://s3-us-west-2.amazonaws.com/devslopesvideo/lancer.jpg"})
1 change: 1 addition & 0 deletions models/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var mongoose = require('mongoose');
var product = new mongoose.Schema({
title: String,
price: Number,
imgUrl: String,
likes: {type: Number, default: 0}
})

Expand Down

0 comments on commit e7a94cd

Please sign in to comment.