Skip to content

Instantly share code, notes, and snippets.

View ironheart122's full-sized avatar
🎯
I may be slow to respond.

ironheart122 ironheart122

🎯
I may be slow to respond.
View GitHub Profile
@ironheart122
ironheart122 / Postman.desktop
Created November 18, 2018 16:10 — forked from aviskase/Postman.desktop
Install Postman
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
@ironheart122
ironheart122 / gist:2487cb5ff9c3f9d96b224c3f315a7db2
Created January 31, 2019 21:16 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@ironheart122
ironheart122 / Knex-Setup.md
Created February 24, 2019 09:52 — forked from NigelEarle/Knex-Setup.md
Setup Knex with Node.js

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init

Node.js Express JSON API - CRUD Stickers We'll be using:

Postgres for our database

knex.js for our database migrations, seeds and queries.

express.js for our JSON routes

Mocha, Chai and SuperTest to test our routes

@ironheart122
ironheart122 / Dockerfile
Created March 1, 2019 05:20
Dockerfile for deploying a React app (created via CRA) in production
# Stage 1 - build environment
FROM node:8.15-alpine as builder
WORKDIR /usr/src/app/
COPY . ./
RUN npm install --production
RUN npm run build
# Stage 2- production environment
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /usr/src/app/build/ /usr/share/nginx/html/
@ironheart122
ironheart122 / Dockerfile
Created March 1, 2019 05:21
Dockerfile for launching a React app in development
FROM node:8.15-alpine
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package* /usr/src/app/
RUN npm install
RUN npm install react-scripts
COPY . .
CMD ["npm", "start"]
EXPOSE 3000
@ironheart122
ironheart122 / docker-compose.yml
Created March 1, 2019 06:06
PP Autobirther - Docker-Compose config file
version: "3"
services:
app:
build: .
container_name: planetpegasus-autobirther-app
depends_on:
- redis
links:
- redis
environment:
@ironheart122
ironheart122 / .prettierrc
Created March 10, 2019 14:58
My preferred Prettier config file
{
"arrowParens": "always",
"printWidth": 140,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"semi": true,
"useTabs": false
}
@ironheart122
ironheart122 / docker.compose.yml
Created March 15, 2019 12:24 — forked from thomas15v/docker.compose.yml
traefik.io nginx example
version: '2'
services:
nginx:
image: nginx:alpine
restart: always
labels:
- "traefik.enable=true"
- 'traefik.frontend.rule=Host:www.website.com'
- "traefik.port=80"
volumes:
@ironheart122
ironheart122 / README-Template.md
Created April 7, 2019 22:29 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites