var express = require('express');
var app = express();
var server = require('http').createServer(app);  
var io = require('socket.io').listen(server);
var models = require("./models");

var PORT = process.env.PORT || 3000;


models.sequelize.sync({force: true}).then(function () {
  require('./config/routes.js')(app, express, io);

  server.listen(PORT, function (){
    console.log('listening on port', PORT);
  });

// SAMPLE DB INSERTIONS
models.teachers.create({
                      firstname: 'Jake',
                      lastname: 'Pace',
                      username: 'jakepace',
                      password: 'pass',
                    });

models.teachers.create({
                      firstname: 'Ian',
                      lastname: 'DUBWABLANNNN',
                      username: 'ianD',
                      password: 'pass123',
                    });


models.students.create({
                      firstname: 'Shane',
                      lastname: 'McGraw',
                      username: 'ShaneM',
                      password: 'passworddd',
                    });

models.students.create({
                      firstname: 'Jacob',
                      lastname: 'Lee',
                      username: 'JLee',
                      password: '1234',
                    });


models.classes.create({
                      name: 'CS101',
                      teacher_id: 1,
                    });


models.classes.create({
                      name: 'CS102',
                      teacher_id: 2,
                    });

models.classes.create({
                      name: 'History',
                    });


// Needs correct fiends added
models.students_classes.create({
                      class_id: 1,
                      student_id: 1
                    });


models.students_classes.create({
                      class_id: 2,
                      student_id: 2
                    });










});
@@ -1299,32 +1299,257 @@
           %7D);%0A%0A%0A
+models.students.create(%7B%0A                      firstname: 'Orlando',%0A                      lastname: 'Calrisian',%0A                      username: 'OlandoC',%0A                      password: 'pass123',%0A                    %7D);%0A%0A
 models.classes.c
@@ -2157,17 +2157,143 @@
    %7D);%0A%0A
-%0A
+models.students_classes.create(%7B%0A                      class_id: 2,%0A                      student_id: 3%0A                    %7D);
 %0A%0A%0A%0A%0A%0A%0A%0A

Add additional sample users to classes