If you have not done the previous steps, or have no setup your mlab database.

cd server
cd models
touch product.js
touch user.js
const mongoose = require('mongoose');const Schema = mongoose.Schema;
//Need an id, name, description, price,//Id is created by default in mongodbconst product = new Schema({name: String,description: String,price: Number});
//To create a model, use the name of the model, and the schema with the properties of the model// that  wil be inserted to the  database.module.exports = mongoose.model('Product', product);
const mongoose = require('mongoose');const Schema = mongoose.Schema;
//Define your User Collection Objects Structure//With datatypes//We'll be using Auth0 for authentication in the future.const user = new Schema({//THis is where the user will login//For Now we will be inserting test dataname: String,email: String,username: String,auth0_id: String});
//Export the model on the mongoose.//So this model will be inserted to the database.module.exports = mongoose.model('User', user)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store