Heroku PHP

Create A Heroku Project

heroku create techofficephptest

Image 004

Create a Local Project Folder

Image 001.png

Create an index.php

Image 002Image 004

Deploy to Heroku

git init

heroku git:remote -a techofficephptest

Image 005

git add .

git commit -m "Update"

Image 006.png

git push heroku master

Image 007.png

Open your Heroku Application

Image 009Image 010Image 011



NodeJs Hello World Project

HelloWorld Example 


* nodeJS is JavaScript-based framework/platform built on Google Chrome V8 Engine.
* It is used to develop I/O intensive web application 
* like video streaming sites, sigle-page application. 
var http = require("http");
http.createServer(function(request, response){
 response.writeHead(200, {'Content-Type': 'text/plain'});
 response.end('Hello World\n');
console.log("Server is running on http://localhost:8080/");

Command to start server

node main.js


NPM Install Proxy

Proxy Configuration NPM Command

Npm Command to set proxy configuration.

npm config set proxy http://login:pass@host:port
npm config set https-proxy http://login:pass@host:port
npm config set http-proxy http://login:pass@host:port
npm config set registry "http://registry.npmjs.org/"
npm config set strict-ssl false

The configuration is stored in <User Folder>/.npmrc


proxy = http://login:pass@host:port
https-proxy = http://login:pass@host:port
strict-ssl = false
http_proxy = http://login:pass@host:port
registry = http://registry.npmjs.org/



OAuth is an Industry-standard protocol for authorization. OAuth specifies a process for owner to authorize third-party application’s access to an application without giving the third-party application password. For example, you authorize a third-party  android application access to Facebook’s Account.

Image 2

Similar Protocol

  • OpenID