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
<?php | |
$user = (object) [ | |
'name' => 'Jane Doe', | |
'email' => 'janedoe@gmail.com', | |
'logged' => true | |
]; | |
?> | |
<!doctype html> | |
<html lang="en"> |
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": "react-php", | |
"version": "1.0.0", | |
"description": "Setting up php and react web app", | |
"main": "index.js", | |
"scripts": { | |
"build": "webpack --progress --env.NODE_ENV=production --mode production", | |
"watch": "webpack --colors --debug --display-chunk -w --env.NODE_ENV=development --mode development" | |
}, | |
"dependencies": { |
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
'use strict'; | |
const webpack = require('webpack'); | |
const path = require('path'); | |
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
let config = { | |
entry: { | |
main: [ | |
'./_devapp/app.js', |
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 React, { Component, Fragment } from 'react'; | |
import { render } from 'react-dom'; | |
import { asyncComponent } from 'react-async-component'; | |
/** We are importing our index.php my app Vairaible */ | |
import myApp from 'myApp'; | |
class Myapp extends Component { | |
render() { |
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
const express = require('express'), | |
chalk = require('chalk'), | |
fs = require( 'fs' ); | |
const pkg = require( './package.json' ); | |
const start = Date.now(), | |
protocol = process.env.PROTOCOL || 'https', | |
port = process.env.PORT || '3000', | |
host = process.env.HOST || 'localhost'; |
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": "nodejs-sll", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "nodemon index.js" | |
}, | |
"keywords": [], | |
"author": "I am a pro", |
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
if ( ! fs.existsSync( key ) || ! fs.existsSync( certificate ) ) { | |
try { | |
execSync( 'openssl version', execOptions ); | |
execSync( | |
`openssl req -x509 -newkey rsa:2048 -keyout ./certs/key.tmp.pem -out ${ certificate } -days 365 -nodes -subj "/C=US/ST=Foo/L=Bar/O=Baz/CN=localhost"`, | |
execOptions | |
); | |
execSync( `openssl rsa -in ./certs/key.tmp.pem -out ${ key }`, execOptions ); | |
execSync( 'rm ./certs/key.tmp.pem', execOptions ); | |
} catch ( error ) { |
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> | |
<head> | |
<meta charset=utf-8> | |
<title>My first three.js app</title> | |
<style> | |
body { margin: 0; } | |
canvas { width: 100%; height: 100% } | |
</style> | |
</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title>My first three.js app</title> | |
<style> | |
body { margin: 0; } | |
canvas { width: 100%; height: 100% } | |
</style> | |
</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title>My first three.js app</title> | |
<style> | |
body { margin: 0; } | |
canvas { width: 100%; height: 100% } | |
</style> | |
</head> |
OlderNewer