Skip to content

Instantly share code, notes, and snippets.

Avatar

Kishan Gajera kgajera

View GitHub Profile
@kgajera
kgajera / server.ts
Created May 25, 2020
Angular Express Server with Redis Caching
View server.ts
import 'zone.js/dist/zone-node';
import { APP_BASE_HREF } from '@angular/common';
import { ngExpressEngine } from '@nguniversal/express-engine';
import * as express from 'express';
import { existsSync } from 'fs';
import { join } from 'path';
import * as redis from 'redis';
import { AppServerModule } from './src/main.server';