Complete swap from express and aws to express and heroku due to the much smaller learning curve needed for a herkou build

This commit is contained in:
Gregory Campbell
2021-11-23 15:01:58 -05:00
parent 58de36beb0
commit ba98c76e23
11 changed files with 1963 additions and 240 deletions
+11
View File
@@ -0,0 +1,11 @@
const mongoose = require("mongoose"); //import mongoose
// msg schema
const MsgSchema = new mongoose.Schema({
id: {type:Number, required:true},
message: {type:String, required:true},
time: {type:Date, required:true}
})
const Msg = mongoose.model('Msg', MsgSchema); //convert to model named Msg
module.exports = Msg; //export for controller use