Express Getting Started Cheat Sheet

2017-02-07 19:44:21 EXPRESS, JAVASCRIPT, NODE,

Setup Project With Node,Express and Git

$ mkdir app && cd app
$ touch .env .gitignore README.md index.html server.js

$ npm init
$ npm install --save express

$ git init
$ git add .
$ git commit -m "initial commit"
$ git remote add origin <your github url>
$ git push -u origin master

Setup a Laravel dev machine

2017-02-06 19:44:51 PHP, DEV, NODE, LUNUX, SYSTEM, LARAVEL

Install required tools to develop Laravel Pages localy with MySQL.

# MySQL 

sudo apt install mysql-server

# PHP

sudo apt install libnss3-tools jq xsel
sudo apt install php php-cli php-common php-curl php-json php-mbstring php-mcrypt php-mysql php-opcache php-readline php-xml php-zip php-mysql

# Composer

get install from https://getcomposer.org/download/

mv composer.phar /usr/local/bin/composer

# Laravel Globaly

composer global require "laravel/installer"

echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc

source ~/.bashrc

# NPM/Node

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt install -y nodejs  build-essential

sudo npm install -g gulp


# Optional webAdminInterface for sql

wget https://github.com/vrana/adminer/releases/download/v4.2.5/adminer-4.2.5-mysql.php
wget https://raw.githubusercontent.com/pappu687/adminer-theme/master/adminer.css

with a custom css-file for some nice styling =P

Done.

now just


laravel new <NAME> 
cd <NAME>
npm install

Over and out :)