Skip to content

Instantly share code, notes, and snippets.

Node Starter

Get Started

Run from a new project folder:

curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/node-starter.sh | sh

Keybase proof

I hereby claim:

  • I am eezing on github.
  • I am eezing (https://keybase.io/eezing) on keybase.
  • I have a public key ASDo64vbmF-n3OQVHX0fTDx-LbOY4Ul0ex5Th9AWkLl-TAo

To claim this, I am signing this object:

Next Starter

Get Started

Run from a new project folder:

curl https://gist.githubusercontent.com/eezing/ea49045bb27401b3d2356e5f4c7eec92/raw/next-starter.sh | sh

GraphQL Starter

Get Started

Run from a new project folder:

curl https://gist.githubusercontent.com/eezing/da80573eed81e5fae5658d90aaccbaea/raw/graphql-starter.sh | sh
FROM circleci/python:2.7.15-jessie
# node installations command expect to run as root
USER root
## Using node installation from https://raw.githubusercontent.com/nodejs/docker-node/e3ec2111af089e31321e76641697e154b3b6a6c3/8/jessie/Dockerfile
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node#release-team
@eezing
eezing / notes_git.md
Last active November 1, 2018 20:39
Notes, code snippets, how to for Git CLI

Git Notes

Notes, code snippets, how to for Git CLI.

Offical Docs

Snippets

delete all local branches

Bash Notes

Notes, code snippets for Bash.

Offical Docs

Snippets

isEmpty function

Docker for NodeJS

Dockerfile

FROM node:10.11-alpine

# Create app dir
RUN mkdir -p /usr/app
WORKDIR /usr/app

vscode setup

Extensions

Note: Requires vscode CLI is intalled

Run in command line:

code --install-extension AndrewRazumovsky.vscode-styled-jsx-languageserver
code --install-extension alexkrechik.cucumberautocomplete

NodeJS Setup

Setup guide for NodeJS on MacOS.

Get Started

  1. Install NVM - Node Version Manager.

  2. Run nvm install node to install latest NodeJS version.