Skip to content

Commit

Permalink
Merge pull request #1 from rmothilal/master
Browse files Browse the repository at this point in the history
Initial Commit for event sidecar
  • Loading branch information
rmothilal authored Jun 14, 2019
2 parents 4e6ca63 + 530e20c commit b351b6f
Show file tree
Hide file tree
Showing 38 changed files with 11,026 additions and 201 deletions.
582 changes: 582 additions & 0 deletions .circleci/config.yml

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
coverage/
node_modules/
.dockerignore
.eslintignore
.git/
.gitignore
api.Dockerfile
Dockerfile
LICENSE
README.md
.circleci/
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage
templates
31 changes: 31 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parserOptions": {
"ecmaVersion": 9
},
"rules": {
"no-console": [
"off"
],
"indent": [
2,
2
],
"quotes": [
2,
"single"
],
"linebreak-style": [
2,
"unix"
],
"semi": [
2,
"never"
]
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended"
}
70 changes: 70 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# --------------- #
# IntelliJ #
# --------------- #
.idea/
**/*.iml

# VSCode directory
.vscode
51 changes: 51 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Automatically ignored per:
# https://www.npmjs.org/doc/developers.html#Keeping-files-out-of-your-package
#
# .*.swp
# ._*
# .DS_Store
# .git
# .hg
# .lock-wscript
# .svn
# .wafpickle-*
# CVS
# npm-debug.log
# node_modules

*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
*.orig

work
build
test
pids
logs
results
coverage
lib-cov
html-report
xunit.xml

.project
.idea
.settings
.iml
*.sublime-workspace
*.sublime-project

ehthumbs.db
Icon?
Thumbs.db
.AppleDouble
.LSOverride
.Spotlight-V100
.Trashes

test/temp
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:10.15.3-alpine

WORKDIR /opt/event-sidecar

RUN apk add --no-cache -t build-dependencies git make gcc g++ python libtool autoconf automake \
&& cd $(npm root -g)/npm \
&& npm config set unsafe-perm true \
&& npm install -g node-gyp

COPY package.json package-lock.json* /opt/event-sidecar/
RUN npm install --production

RUN apk del build-dependencies

COPY config /opt/event-sidecar/config
COPY src /opt/event-sidecar/src

EXPOSE 4000
CMD ["npm", "run", "start"]
201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

Loading

0 comments on commit b351b6f

Please sign in to comment.