Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added DeployingDemo/new.ejs
Empty file.
9 changes: 7 additions & 2 deletions YelpCamp/Final/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ var express = require("express"),
//requiring routes
var commentRoutes = require("./routes/comments"),
campgroundRoutes = require("./routes/campgrounds"),
indexRoutes = require("./routes/index")
indexRoutes = require("./routes/index");

mongoose.connect("mongodb://localhost/yelp_camp_v9");
var url = process.env.DATABASEURL || "mongodb://localhost/yelp_camp_final";

mongoose.connect(url);

app.use(bodyParser.urlencoded({extended: true}));
app.set("view engine", "ejs");
app.use(express.static(__dirname + "/public"));
Expand Down Expand Up @@ -49,10 +52,12 @@ app.use(function(req, res, next){
});



app.use("/", indexRoutes);
app.use("/campgrounds", campgroundRoutes);
app.use("/campgrounds/:id/comments", commentRoutes);

app.listen(process.env.PORT, process.env.IP, function(){
console.log("The YelpCamp Server Has Started!");
console.log(process.env.PORT);
});
2 changes: 2 additions & 0 deletions YelpCamp/Final/data/WiredTiger
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WiredTiger
WiredTiger 3.1.1: (July 12, 2018)
1 change: 1 addition & 0 deletions YelpCamp/Final/data/WiredTiger.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WiredTiger lock file
6 changes: 6 additions & 0 deletions YelpCamp/Final/data/WiredTiger.turtle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
WiredTiger version string
WiredTiger 3.1.1: (July 12, 2018)
WiredTiger version
major=3,minor=1,patch=1
file:WiredTiger.wt
access_pattern_hint=none,allocation_size=4KB,app_metadata=,assert=(commit_timestamp=none,read_timestamp=none),block_allocation=best,block_compressor=,cache_resident=false,checkpoint=(WiredTigerCheckpoint.108=(addr="018981e4595208748a81e4ebe43d9d8b81e446ebcf95808080e3012fc0e24fc0",order=108,time=1558982895,size=32768,write_gen=200)),checkpoint_lsn=(4294967295,2147483647),checksum=uncompressed,collator=,columns=,dictionary=0,encryption=(keyid=,name=),format=btree,huffman_key=,huffman_value=,id=0,ignore_in_memory_cache_size=false,internal_item_max=0,internal_key_max=0,internal_key_truncate=true,internal_page_max=4KB,key_format=S,key_gap=10,leaf_item_max=0,leaf_key_max=0,leaf_page_max=32KB,leaf_value_max=0,log=(enabled=true),memory_page_image_max=0,memory_page_max=5MB,os_cache_dirty_max=0,os_cache_max=0,prefix_compression=false,prefix_compression_min=4,split_deepen_min_child=0,split_deepen_per_child=0,split_pct=90,value_format=S,version=(major=1,minor=1)
Binary file added YelpCamp/Final/data/WiredTiger.wt
Binary file not shown.
Binary file added YelpCamp/Final/data/WiredTigerLAS.wt
Binary file not shown.
Binary file added YelpCamp/Final/data/_mdb_catalog.wt
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file added YelpCamp/Final/data/mongod.lock
Empty file.
Binary file added YelpCamp/Final/data/sizeStorer.wt
Binary file not shown.
Binary file added YelpCamp/Final/data/storage.bson
Binary file not shown.
1 change: 1 addition & 0 deletions YelpCamp/Final/mongod
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mongod --nojournal --dbpath=data