Commit b1868456 authored by Mark Stenglein's avatar Mark Stenglein

Remove everything having to do with mongodb

- NOTE: This branch does _nokt_ work at the current state!
- Next steps: add in everything having to do with some SQL database
parent 7916c1eb
......@@ -24,15 +24,6 @@ if [ "$DISTRIB_ID" == "Ubuntu" ]
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
fi
if ! haveProg mongod
then
echo "** Installing MongoDB"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu $DISTRIB_CODENAME/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
## Service is started in start.sh file
fi
if ! haveProg redis-server
then
echo "** Installing redis-server"
......
......@@ -12,8 +12,6 @@ var path = require('path');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
var mongooseRedisCache = require("mongoose-redis-cache");
// Load site wide configurations
var config = require('./config');
......@@ -43,14 +41,10 @@ app.use(require('node-sass-middleware')({
}));
app.use(express.static(path.join(__dirname, 'public')));
// Connect to mongo
mongoose.connect(config.mongoDBURL);
// Setup the mongo redis caching for performance
mongooseRedisCache(mongoose);
// Populate initial data
var populateDB = require('./setup/populateDB');
populateDB();
// TODO: convert these over to the MYSQL Section
//var populateDB = require('./setup/populateDB');
//populateDB();
// Actually use the loaded routes
// TODO: make this automatic instead of being manually entered
......
......@@ -11,10 +11,6 @@ config.siteName = "Schedules";
// Application Description (subtitle)
config.siteDescription = "A simple application to add your class schedule to calendar applications like Outlook and Google Calendar."
// MongoDB config
config.mongoDBURL = 'mongodb://localhost/schedules';
config.ReloadDB = false;
// Object given to the front end to populate the semester and school selection
// dropdown lists.
// TODO: Make this dynamic instead of hard coding it into the system.
......
......@@ -11,8 +11,6 @@
"debug": "~2.2.0",
"express": "~4.13.4",
"ical-generator": "^0.2.8",
"mongoose": "^4.5.5",
"mongoose-redis-cache": "0.0.3",
"morgan": "~1.7.0",
"node-sass": "^3.8.0",
"node-sass-middleware": "0.8.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment