Skip to content

Commit

Permalink
front end style alternate
Browse files Browse the repository at this point in the history
  • Loading branch information
wilcook committed Jan 24, 2017
1 parent f57f25a commit 7203072
Show file tree
Hide file tree
Showing 32 changed files with 639 additions and 393 deletions.
Binary file added UI_Templates/bolt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
253 changes: 253 additions & 0 deletions UI_Templates/titletreatment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Include the Main React Dependencies
var React = require("react");
var ReactDOM = require("react-dom");

// Include the main Parent Component
var Parent = require("./components/register");

// This code here allows us to render our main component (in this case Parent)
ReactDOM.render(<register />, document.getElementById("app"));
1 change: 1 addition & 0 deletions app/components/login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
////////////FUTURE IMPLEMANTATION///////////////
5 changes: 5 additions & 0 deletions app/components/register.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//including react
var react = require ("react");

// Requiring our helper for making API calls
var helpers = require("../utils/helpers");
15 changes: 15 additions & 0 deletions app/utils/helpers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Here we will utilize the axios library to perform GET/POST requests
var axios = require("axios");

// Exporting an object with methods for retrieving and posting data to our API
module.exports = {
// Returns a promise object we can .then() off inside our Parent component
getClicks: function() {
return axios.get("/api");
},
// Also returns a promise object we can .then() off inside our Parent component
// This method takes in an argument for what to post to the database
saveClicks: function(clickData) {
return axios.post("/api", clickData);
}
};
Binary file added assets/red-faded-light-.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/register-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/titletreatment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 0 additions & 92 deletions bin/www

This file was deleted.

3 changes: 1 addition & 2 deletions config/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ var sequelize = new Sequelize(process.env.JAWSDB_URL,

});


// Exports the connection for other files to use
module.exports = sequelize;
module.exports = sequelize;
79 changes: 0 additions & 79 deletions dbSchema.sql

This file was deleted.

24 changes: 0 additions & 24 deletions models/login/passwordID.js
Original file line number Diff line number Diff line change
@@ -1,24 +0,0 @@
// This may be confusing but here Sequelize (capital) references the standard library
var Sequelize = require("sequelize");

// sequelize (lowercase) references my connection to the DB. You could name it something else, but I was just following their convention.
var sequelize = require("../config/connection.js");

var pwid = sequelize.define("pwid", {
pwid: {
type: Sequelize.INTEGER,
primaryKey: true,
allowNull: false
},
uid: {
type: Sequelize.INTEGER,
allowNull: false
}
}, {
timestamps: false
});

// Sync with DB
pwid.sync();

module.exports = pwid;
24 changes: 0 additions & 24 deletions models/login/passwords.js
Original file line number Diff line number Diff line change
@@ -1,24 +0,0 @@
// This may be confusing but here Sequelize (capital) references the standard library
var Sequelize = require("sequelize");

// sequelize (lowercase) references my connection to the DB. You could name it something else, but I was just following their convention.
var sequelize = require("../config/connection.js");

var pw = sequelize.define("pw", {
pwid: {
type: Sequelize.INTEGER,
primaryKey: true,
allowNull: false
},
pw: {
type: Sequelize.STRING,
allowNull: false
}
}, {
timestamps: false
});

// Sync with DB
pw.sync();

module.exports = pw;
28 changes: 0 additions & 28 deletions models/medical/allergies.js
Original file line number Diff line number Diff line change
@@ -1,28 +0,0 @@
// This may be confusing but here Sequelize (capital) references the standard library
var Sequelize = require("sequelize");

// sequelize (lowercase) references my connection to the DB. You could name it something else, but I was just following their convention.
var sequelize = require("../config/connection.js");

var allergies = sequelize.define("allergies", {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
allowNull: false
},
uid: {
type: Sequelize.INTEGER,
allowNull: false
},
allergies: {
type: Sequelize.STRING,
allowNull: false
}
}, {
timestamps: false
});

// Sync with DB
allergies.sync();

module.exports = allergies;
Empty file added models/medical/conditions.js
Empty file.
28 changes: 0 additions & 28 deletions models/medical/diseases.js

This file was deleted.

28 changes: 0 additions & 28 deletions models/medical/medications.js
Original file line number Diff line number Diff line change
@@ -1,28 +0,0 @@
// This may be confusing but here Sequelize (capital) references the standard library
var Sequelize = require("sequelize");

// sequelize (lowercase) references my connection to the DB. You could name it something else, but I was just following their convention.
var sequelize = require("../config/connection.js");

var medications = sequelize.define("medications", {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
allowNull: false
},
uid: {
type: Sequelize.INTEGER,
allowNull: false
},
medications: {
type: Sequelize.STRING,
allowNull: false
}
}, {
timestamps: false
});

// Sync with DB
medications.sync();

module.exports = medications;
Loading

0 comments on commit 7203072

Please sign in to comment.