This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
getRecords: function(req, res) { | |
var pg = require('pg'); | |
//You can run command "heroku config" to see what is Database URL from Heroku belt | |
var conString = process.env.DATABASE_URL || "postgres://postgres:Welcome123@localhost:5432/postgres"; | |
var client = new pg.Client(conString); | |
client.connect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "BasicCRUDOperation", | |
"version": "1.0.0", | |
"description": "CRUD Operations in Node.js using PostgreSQL", | |
"main": "server.js", | |
"dependencies": { | |
"http": "~0.0.0", | |
"request": "~2.36.0", | |
"express": "~4.4.5", | |
"logfmt": "~1.1.2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This page is used as POC to call REST API from Visualforce --> | |
<apex:page showHeader="false" sidebar="false" standardStylesheets="false"> | |
<style> | |
body | |
{ | |
font-family: "Open Sans", Helvetica, Arial, sans-serif; | |
font-size : 0.8em; | |
} | |
lable | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../paper-input/paper-input.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
paper-button.colored { | |
color: rgb(66, 133, 244); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../topeka-elements/topeka-resources.html"> | |
<link rel="import" href="../topeka-elements/topeka-profile.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<polymer-element name="my-element"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Salesforce Blogs to follow</title> | |
</head> | |
<body> | |
<outline text="salesforce" title="salesforce"> | |
<outline type="rss" text="Sundog" title="Sundog" xmlUrl="http://feeds2.feedburner.com/Sunblog" htmlUrl="http://www.sundoginteractive.com/sunblog/"/> | |
<outline type="rss" text="Secure Salesforce" title="Secure Salesforce" xmlUrl="http://simplyforce.blogspot.com/feeds/posts/default" htmlUrl="http://simplyforce.blogspot.com/"/> | |
<outline type="rss" text="Andrew Boettcher - Salesforce Technologist" title="Andrew Boettcher - Salesforce Technologist" xmlUrl="http://techman97.wordpress.com/feed/" htmlUrl="http://techman97.wordpress.com"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component controller="Lookup"> | |
<aura:attribute Name="selItem" type="object" access="public" | |
description="This attribute can be used by parent component to read selected record"/> | |
<aura:attribute Name="server_result" type="object[]" access="private" /> | |
<aura:attribute name="lookupIcon" type="String" access="public" default="standard:contact"/> | |
<aura:attribute name="objectName" type="String" access="public" | |
description="Name of Object to be searched"/> | |
<aura:attribute name="field_API_text" type="String" access="public" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component > | |
<aura:attribute Name="selItem" type="object" access="public" /> | |
<aura:attribute Name="selItem1" type="object" access="public" /> | |
<aura:attribute Name="selItem2" type="object" access="public" /> | |
<aura:attribute Name="selItem3" type="object" access="public" /> | |
<div class="slds"> | |
<div class="slds-grid slds-wrap"> | |
<div class="slds-size_1-of-1 | |
slds-small-size_1-of-1 | |
slds-medium-size_1-of-2 |
OlderNewer