<repo_name>bellaheidii/Grace-Hoper<file_sep>/client/build/precache-manifest.c0d6e1b47873705f6a5683506b6a9c32.js
self.__precacheManifest = [
  {
    "revision": "42ac5946195a7306e2a5",
    "url": "/static/js/runtime~main.a8a9905a.js"
  },
  {
    "revision": "9597a14fe210b2f57a0a",
    "url": "/static/js/main.0e61a698.chunk.js"
  },
  {
    "revision": "b5c5beb43fab1ff7f479",
    "url": "/static/js/2.ec295295.chunk.js"
  },
  {
    "revision": "59a4c23f30beb26ad21357f618efc8b4",
    "url": "/index.html"
  }
];<file_sep>/scripts/seedDB.js
const mongoose = require("mongoose");
const db = require("../models");

// This file empties the Books collection and inserts the books below

mongoose.connect(
  process.env.MONGODB_URI ||
  "mongodb://localhost/grace-hoper"
);

const productSeed = [
  {
    catagory: "Clothing",
    productName: "<NAME>",
    condition:"Good",
    date: new Date(Date.now())
  },
  {
    catagory: "Clothing",
    productName: "Jordan shoes",
    condition: "Excellent",
    date: new Date(Date.now())
  },
  {
    catagory: "Electronics",
    productName: "Samsung Tv",
    condition: "Good",
    date: new Date(Date.now())
  },
  {
    catagory: "Electronics",
    productName: "Iphone 8 plus",
    condition: "Excellent",
    date: new Date(Date.now())
  },
  {
    catagory: "Furniture",
    productName: "Mattresses",
    condition:"Good",
    date: new Date(Date.now())
  },
  {
    catagory: "Housewares",
    productName: "Microwave",
    condition: "Excellent",
    date: new Date(Date.now())
  },
  {
    catagory: "Beauty",
    productName: "Clinique",
    condition: "Good",
    date: new Date(Date.now())
  },
  {
    catagory: "Electronics",
    productName: "Iphone 8 plus",
    condition: "Excellent",
    date: new Date(Date.now())
  },
  {
    catagory: "Furniture",
    productName: "Luca Modern Sofa",
    condition:"Good",
    date: new Date(Date.now())
  },
  {
    catagory: "Clothing",
    productName: "Nike pants",
    condition: "Excellent",
    date: new Date(Date.now())
  },
  {
    catagory: "Electronics",
    productName: "kodak Camera",
    condition: "Good",
    date: new Date(Date.now())
  },
  {
    catagory: "Housewares",
    productName: "Refrigerators",
    condition: "Excellent",
    date: new Date(Date.now())
  },
  
];

db.Products
  .remove({})
  .then(() => db.Products.collection.insertMany(productSeed))
  .then(data => {
    console.log(data.result.n + " records inserted!");
    process.exit(0);
  })
  .catch(err => {
    console.error(err);
    process.exit(1);
  });


<file_sep>/routes/api/index.js

const path = require("path");
const router = require("express").Router();
const productRoutes = require("./products");
const customerRoutes = require("./customer");

// Book routes
router.use("/books", productRoutes);

// Google Routes
router.use("/profile", customerRoutes);

// For anything else, render the html page
router.use(function(req, res) {
  res.sendFile(path.join(__dirname, "../../client/build/index.html"));
});

module.exports = router;<file_sep>/models/customers.js
const mongoose = require("mongoose");

const Schema = mongoose.Schema;

const customersSchema = new Schema({
  firstName: { type: String, required: true },
  lastName: { type: String, required: true },
  email:{ type: String, required: true} ,
  password: {type: String, required: true},
  date: { type: Date, default: Date.now },
  products: [
    {
      type: Schema.Types.ObjectId,
      ref: "products"
    }
  ]
});

const Customers = mongoose.model("Customers", customersSchema);

module.exports = Customers;<file_sep>/client/src/App.js

import React from 'react';

import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
//import './App.css';
import Footer from './Containers/FooterComponent';
import NavBar from './Containers/NavBarComponent';
import LogIn from "./Pages/LogIn";
import SignUp from "./Pages/SignUp";
import Cart from "./Pages/Cart";
import Home from "./Pages/Home";
import Beauty from "./Pages/Beauty";
import Books from "./Pages/Books";
import ChildrenToys from "./Pages/ChildrenToys";
import Clothes from "./Pages/Clothes";
import Electronics from "./Pages/Electronics";
import Jewelry from "./Pages/Jewelry";
import Movies from "./Pages/Movies";
import Sport from "./Pages/Sport";
import GardenTools from './Pages/GardenTools';
import Search from './Pages/Search';

function App() {
  return (
    <div>
      <Router>
        <div>
          <NavBar />
          <Switch>
            <Route exact path="/" component={Home} />
            <Route exact path="/LogIn" component={LogIn} />
            <Route exact path="/SignUp" component={SignUp} />
            <Route exact path="/cart" component={Cart} />
            <Route exact path="/Search" component={Search} />
            <Route exact path="/Beauty" component={Beauty} />
            <Route exact path="/Books" component={Books} />
            <Route exact path="/ChildrenToys" component={ChildrenToys} />
            <Route exact path="/Clothes" component={Clothes} />
            <Route exact path="/Electronics" component={Electronics} />
            <Route exact path="/Jewelry" component={Jewelry} />
            <Route exact path="/Movies" component={Movies} />
            <Route exact path="/Sport" component={Sport} />
            <Route exact path="/GardenTools" component={GardenTools} />
          </Switch>
          <Footer />
        </div>
      </Router>
      
    </div>

  );
}

export default App;
<file_sep>/models/products.js
const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const productsSchema = new Schema({
  catagory: { type: String, required: true },
  productName: { type: String, required: true },
  condition: { type: String, required: true} ,
  // image: { data: Buffer, type: String, required: true },
  date: { type: Date, default: Date.now }
});

const Products = mongoose.model("Book", productsSchema);

module.exports = Products;