Skip to content

Instantly share code, notes, and snippets.

View naingaungphyo's full-sized avatar
:octocat:
Everythingship

Naing naingaungphyo

:octocat:
Everythingship
View GitHub Profile
@zurfyx
zurfyx / server.js
Created November 15, 2016 19:25
Express, Socket.io, Passport & Redis.
import http from 'http';
import express from 'express';
import bodyParser from 'body-parser';
import cookieParser from 'cookie-parser';
import expressValidator from 'express-validator';
import Session from 'express-session';
import morgan from 'morgan';
import mongoose from 'mongoose';
import passport from 'passport';
import { createClient as createRedisClient } from 'redis';