Skip to content

Instantly share code, notes, and snippets.

View dj2bee's full-sized avatar

tpohlmann dj2bee

  • Bedburg-Hau, Germany
View GitHub Profile
@dj2bee
dj2bee / sample-nginx.conf
Created April 11, 2016 08:33 — forked from cjus/sample-nginx.conf
AngularJS Nginx and html5Mode
server {
server_name yoursite.com;
root /usr/share/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
@dj2bee
dj2bee / app.js
Created December 21, 2015 09:45
NodeJs Express Webserver
var express = require('express'),
bodyParser = require('body-parser'),
http = require('http'),
app = express(),
router = express.Router(),
apiUrl = '/api',
port = 80;
// Setup bodyParser
app.use(bodyParser.urlencoded({ extended: true }));