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": "basant", | |
"version": "1.0.0", | |
"description": "Basant first project", | |
"main": "Server.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"start": "node Server.js" | |
}, | |
"engines": { |
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
/** | |
* Created by DELL on 4/22/2016. | |
*/ | |
var express = require('express'); | |
var app = express(); | |
app.get('/',function(req,res){ | |
res.send('Hello Express'); | |
}); | |
var Port = process.env.PORT || 3000; |
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
<!DOCTYPE html> | |
<html ng-app="myApp"> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>First App</title> | |
<script src="\node_modules\angular\angular.min.js"></script> | |
<script src="index.js"></script> | |
<link rel="stylesheet" href="\node_modules\bootstrap\dist\css\bootstrap.css"/> | |
</head> |
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
var mongoose = require('mongoose'); | |
module.exports = mongoose.Schema({ | |
firstname: String, | |
lastname: String, | |
phone:String, | |
email:String | |
}); |
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
/** | |
* Created by DELL on 4/22/2016. | |
*/ | |
var express = require('express'); | |
var app = express(); | |
var mongoose = require('mongoose'); | |
var bodyparser = require('body-parser'); | |
var model = require('./model'); | |
var connection = require('./connection'); |
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
var InitCommon= InitCommon || (function(){ | |
var SearchVerticalClickFix = function SearchVerticalClickFix(){ | |
if (typeof(STSNavigate) != 'undefined') { | |
STSNavigate = function(a) { | |
a=GetAbsoluteUrl(a);if(ajaxNavigate.get_search().indexOf("IsDlg=1")!=-1)if(a.indexOf("?")!=-1)if(String(a.match(RegExp("&$")))!="&")a=a+"&IsDlg=1";else a=a+"IsDlg=1";else a=a+"?IsDlg=1";var framed;try{var test = window.frameElement}catch(frameException){framed = true;}; if((!framed && window.frameElement!=null)||typeof SPUpdatePage==="undefined"||typeof SPUpdatePage!=="undefined"&&SPUpdatePage(a))if(isPortalTemplatePage(a))window.top.location.href=STSPageUrlValidation(a);else window.location.href=STSPageUrlValidation(a) | |
}; | |
} | |
}; | |
var init= function init(){ |
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
function LoadSharePointPowerShellEnvironment | |
{ | |
write-host "Setting up PowerShell environment for SharePoint..." -foregroundcolor Green | |
Add-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue | |
write-host "SharePoint PowerShell Snapin loaded." -foregroundcolor Green | |
} | |
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
#Please make sure you have installed all the powershell package. | |
Import-Module 'C:\Users\basantp\Documents\PNP Blog Section\Code\SharePointPnPPowerShell2013\SharePointPnP.PowerShell.2013.Commands.dll'; | |
try { | |
Set-PnPTraceLog -On -LogFile 'C:\Users\basantp\Documents\PNP Blog Section\Code\traceoutput.txt' -Level Error -Delimiter "," | |
$Url1 = "https://sharepoint-xxx.com/xx/xxx" | |
Connect-PnPOnline -Url $Url1 -CurrentCredentials -ErrorAction Stop | |
Write-host "Site connected". | |
$Context= Get-PnPContext # Connect and store the context | |
$Web = $Context.Site.RootWeb |
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
Import-Module 'C:\Users\basantp\Documents\PNP Blog Section\Code\SharePointPnPPowerShell2013\SharePointPnP.PowerShell.2013.Commands.dll'; | |
try { | |
Set-PnPTraceLog -On -LogFile 'C:\Users\basantp\Documents\PNP Blog Section\Code\traceoutput.txt' -Level Error -Delimiter "," | |
$Url1 = "<SiteURL>" | |
$Url2 = "<SiteURL>" | |
Connect-PnPOnline -Url $Url1 -CurrentCredentials -ErrorAction Stop | |
Write-host "Site $Url1 connected". | |
$Context1= Get-PnPContext |
OlderNewer