forked from gajeam/SmartGiving_web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
34 lines (32 loc) · 1017 Bytes
/
index.js
File metadata and controls
34 lines (32 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from "react";
import ReactDOM from "react-dom";
import "./style/Components.css";
import App from "./App";
import registerServiceWorker from "./registerServiceWorker";
import { store } from "./RootStore";
//SEL
// var express = require("express");
// var mongoose = require("mongoose");
// var bodyParser = require("body-parser");
// var ObjectId = require("mongodb").ObjectID;
//
// require("./database/model/recipients");
// require("./database/model/donor");
// require("./database/model/merchant");
// var app = express();
// mongoose.Promise = global.Promise; //CHECK IF THIS IS NECESSARY
// mongoose.connect(
// "mongodb://sberthely:password@ds047307.mlab.com:47307/final_proj_test"
// );
// app.use(express.static("public"));
// app.use(bodyParser.urlencoded({ extended: true }));
// app.use(bodyParser.json());
//
// require("./database/routes/dbRoutes")(app);
//SEL
window.React = React;
ReactDOM.render(
<App store={store} />,
document.getElementById("root")
);
registerServiceWorker();