Skip to content

Instantly share code, notes, and snippets.

View duluca's full-sized avatar
💭
😎

Doguhan Uluca duluca

💭
😎
View GitHub Profile
@duluca
duluca / http-server.js
Created March 12, 2017 00:47
No plug-in http server for Node.js
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8080;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), "public", uri);
@duluca
duluca / StartingWithDocker.md
Last active June 30, 2020 02:20
Starting with Docker

What is Docker?

  • Docker is an open platform for developing, shipping, and running applications.
  • Combines a lightweight container virtualization platform with workflows and tooling that help manage and deploy applications.

Why is Containerization Important?

  • Containerization allows for encapsulation of app specific configuration concerns.
  • Encapsulation allows for decoupling of dependencies, so each app can depend on different versions.
  • Simpler dependency management results in a low friction IT environment, less things to learn and break.
  • Low friction allows to ship code faster, test faster, deploy faster, shortening the cycle between writing code and running code.
@duluca
duluca / package.json
Created January 5, 2017 14:23 — forked from kgroat/package.json
An example of how to use npm as a build tool along with TypeScript
{
"name": "playground",
"version": "1.0.0",
"main": "server/app.js",
"private": true,
"scripts": {
"clean": "npm run clean:client && npm run clean:server",
"clean:client": "rm -rf public/*.* && rm -rf public/**/*.* && rm -rf src/ts/*.js && rm -rf src/ts/**/*.js",
"clean:server": "rm -rf server/*.{js,d.ts} && rm -rf server/**/*.{js,d.ts}",
"compile": "npm run compile:client && npm run compile:sass && npm run compile:server && npm run compile:static",
@duluca
duluca / package.json
Created September 3, 2014 17:33
remote-retro-hapi
{
"name": "remote-retro-hapi",
"version": "0.0.1-1",
"description": "A tool to host retrospectives for Agile Scrum projects with remote members",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
"scripts": {
"postinstall": "bower install",