Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["es2015"]
}

17 changes: 17 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Wild
*.log
*.tmp
*.bak
*.bck

# Files
Dockerfile

# Folders
.git/
data/
docker/*.*
docks/
doc/
node_modules/
tmp/
26 changes: 26 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
; indicate this is the root of the project
root = true

[*]
indent_style = space
end_of_line = lf
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true

[*.c]
indent_size = 4

[*.cpp]
indent_size = 4

[*.h]
indent_size = 4

[*.md]
max_line_length = 0
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
indent_size = 8
43 changes: 43 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"rules": {
"arrow-body-style": 0,
"arrow-parens": 0,
"camelcase": 0,
"comma-dangle": 0,
"global-require": 0,
"import/no-dynamic-require": 0,
"import/prefer-default-export": 0,
"no-constant-condition": 0,
"max-len": 0,
"no-console": 0,
"object-curly-spacing": 0,
"react/forbid-prop-types": 0,
"react/jsx-curly-spacing": 0,
"react/jsx-filename-extension": 0,
"react/jsx-space-before-closing": 0,
"react/prefer-stateless-function": 0,
"semi": 2
},
"globals": {
"__DEVELOPMENT__": true,
"__CLIENT__": true,
"__SERVER__": true,
"__DISABLE_SSR__": true,
"__DEVTOOLS__": true,
"beforeEach": true,
"describe": true,
"document": true,
"it": true,
"window": true,
}
}
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
sudo: required

services:
- docker

language: node_js
node_js:
- "6"
- "6.1"
- "5.11"

env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

before_install:
- "docker-compose up -d postgres"
- "sleep 15"
- "docker-compose up -d"
- "sleep 15"
- "curl http://localhost:4000"

before_script:
- npm run gulp
39 changes: 39 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM mhart/alpine-node:6.7.0

# Install required dependencies (Alpine Linux packages)
RUN apk update && \
apk add --no-cache \
cmake \
g++ \
gcc \
gd-dev \
git \
libev-dev \
libevent-dev \
libuv-dev \
make \
openssl-dev \
perl \
python

RUN git clone git://github.com/couchbase/libcouchbase.git && \
cd libcouchbase && \
git checkout 2.5.8 && \
mkdir build && \
cd build && \
../cmake/configure && \
make && \
make install && \
cd ..

# Copy required stuff
ADD . .

# If you need npm, don't use a base tag
RUN npm install

# RUN npm install -g babel-cli gulp

RUN npm run gulp

ENTRYPOINT ["./bin/microcrawler-worker.js"]
Loading