Skip to content

Instantly share code, notes, and snippets.

View chl03k's full-sized avatar
🏠
Working from home

Daniel Garcia chl03k

🏠
Working from home
View GitHub Profile
var User = /** @class */ (function () {
function User(name, id) {
this.name = name;
this.id = id;
}
return User;
}());
class User {
name: string;
id: number;
constructor(name: string, id: number) {
this.name = name;
this.id = id;
}
}
@chl03k
chl03k / docker-run-redis.md
Created July 20, 2020 23:16 — forked from sskoopa/docker-run-redis.md
Start redis in Docker with a open port at localhost:6379

docker run --name recorder-redis -p 6379:6379 -d redis:alpine

@chl03k
chl03k / typescript-web-components.md
Created June 8, 2020 01:53 — forked from aelbore/typescript-web-components.md
Step by Step creating web components in typescript using rollup

Getting Started

  • Install Dependencies
    npm init
    npm install --save-dev ts-node typescript tslib express @types/express
    

Create your web server

  • Create server.ts in root folder of your app.