Skip to content

Commit

Permalink
Initial project (#1)
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
austinkelleher committed Sep 4, 2017
1 parent c6da290 commit 8a5ea68
Show file tree
Hide file tree
Showing 57 changed files with 11,494 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extends:
- standard
3 changes: 3 additions & 0 deletions .githooks/pre-commit/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

npm run lint
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
node_modules/
dist/
.nyc_output/
coverage/
.npm/
.config/
.v8flags*


### vim artifacts - https://github.com/github/gitignore/blob/master/Global/Vim.gitignore ###

# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]

# Session
Session.vim

# Temporary
.netrwhist
*~
# Auto-generated tag files
tags
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
- docker

script: docker-compose run test

notifications:
slack:
secure: XX4h22l27fJgMJvc6aE8QzL76BqP7wOMXjfNfUZsnugIkNvzcSj6u4ScrMLXB0NXExOIkgtw0ZvSq/uKLNaJuW+kJdZU1XNvjEk4bqpJcOSan38Fl58z98W+N7tjkOqvwRKQRGafixWjzIE6SGR7EtTXyqM12fY8krYSHpofyFIHlcDBIDE2X8o1eWA05Ihnl+PefTdNXC7nJ14ECIoKQ3Zj8w824vjTjVrrHCQHl2Djybo9wXfgNCcDay8aMkXdGe7iyGdIa0XhD7vaK/CB9NtoF2KjCd6hIHREnbVL8iEUNsTtleOU22D9EGlkCH4714M1xQayizmEK3Ov7Z3RXXuOzG+gTVk8P7HZeidC0Tzutrym9BjAvPCFxXHG7ammRcSkOST5Bas96l6MEdPqWB4bI0dLFINIyoeIj/jO7R5UU0WEp2qBP6KJcVz39jHSTYQR34n1eD9wWLcOTcgD5clCbxiS0Ba3hqpC2Iz2uXca4IlFb8G0HOM29Ntu5BuM4pi5zY8BU818lMRbR8GAMJmRHoeteX9yFjJQnMWp4HpsTzGjfgpRWAmJTn85HA5Wzm+pKeeIN1oJK8UGQp9uphOAQRb1zuwO2JmTM6Ac1SPlePegxK/cLSNumzioVUIz2Mo3FCDj5+ULu8MOY9AhOjJXjahJXyDX3midZ4ItPFQ=
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:8.1.2-alpine

ENV HOME=/usr/windbreaker-hooks

RUN mkdir -p $HOME

WORKDIR $HOME

# install git
RUN apk update && apk upgrade && \
apk add --no-cache git

ADD package.json $HOME
RUN npm install --silent
14 changes: 14 additions & 0 deletions config/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
amqUrl: 'amqp://rabbitmq'
redisClusterNodes:
- host: '127.0.0.1'
port: 7000
- host: '127.0.0.1'
port: 7000
knex:
client: 'pg'
connection:
host: 'postgres'
user: 'postgres'
password: 'postgres'
database: 'windbreaker'
debug: true
14 changes: 14 additions & 0 deletions config/localhost.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
amqUrl: 'amqp://rabbitmq'
redisClusterNodes:
- host: '127.0.0.1'
port: 7000
- host: '127.0.0.1'
port: 7000
knex:
client: 'pg'
connection:
host: 'postgres'
user: 'postgres'
password: 'postgres'
database: 'windbreaker'
debug: true
36 changes: 36 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: '3'
services:
windbreaker-hooks:
build: .
command: 'npm start'
depends_on:
- postgres
- rabbitmq
volumes:
- .:/usr/windbreaker-hooks
- /usr/windbreaker-hooks/node_modules
environment:
SERVICE_ENVIRONMENT: 'docker'
test:
build: .
command: 'npm run test:docker:ci'
depends_on:
- postgres
- rabbitmq
volumes:
- .:/usr/windbreaker-hooks
- /usr/windbreaker-hooks/node_modules
environment:
SERVICE_ENVIRONMENT: 'docker'
postgres:
image: 'postgres:9.6.3-alpine'
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
POSTGRES_DB: 'windbreaker'
ports:
- 5432
rabbitmq:
image: 'rabbitmq:3.6.10-alpine'
ports:
- 5672
Loading

0 comments on commit 8a5ea68

Please sign in to comment.