Skip to content

Commit

Permalink
Coriolis with Atomic design implementation
Browse files Browse the repository at this point in the history
Includes:
Alt Flux data flow framework
Jest testing framework
Storybook
Styled Components
  • Loading branch information
Sergiu Miclea authored and alexpilotti committed Dec 4, 2017
1 parent d63c8ea commit 0d39a85
Show file tree
Hide file tree
Showing 619 changed files with 28,768 additions and 23,124 deletions.
45 changes: 39 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,44 @@
{
"presets": [
"es2015",
"stage-0",
[
"env",
{
"modules": false
}
],
"react",
"babel-preset-jest"
"stage-1"
],
"plugins": [
"transform-runtime"
]
}
"react-hot-loader/babel"
],
"env": {
"development": {
"plugins": [
"transform-es2015-modules-commonjs",
[
"styled-components",
{
"minify": false
}
]
]
},
"test": {
"plugins": [
"transform-es2015-modules-commonjs"
]
},
"production": {
"plugins": [
"transform-react-remove-prop-types",
[
"styled-components",
{
"displayName": false
}
]
]
}
}
}
19 changes: 0 additions & 19 deletions .csslintrc

This file was deleted.

20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

# Change these settings to your own preference
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
src/__tests__
server.js
58 changes: 40 additions & 18 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,48 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"extends": [
"airbnb"
],
"env": {
"browser": true,
"jest": true
},
"globals": {
"__DEV__": true
"__DEV__": true,
"__PROD__": true,
"__DEBUG__": true,
"__COVERAGE__": true,
"__BASENAME__": true
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
},
"rules": {
"no-confusing-arrow": 0,
"react/jsx-quotes": 0,
"jsx-quotes": [2, "prefer-double"],
"comma-dangle": 0,
"semi": 0,
"quotes": 0,
"eqeqeq": 0,
"semi": [2, "never"],
"comma-dangle": [2, "always-multiline"],
"class-methods-use-this": 0,
"max-len": 0,
"prefer-const": 0,
"max-len": ["error", 120],
"react/jsx-no-bind": 0,
"prefer-template": 0,
"object-shorthand": 0,
"arrow-parens": 0,
"react/prefer-stateless-function": 0,
"react/no-array-index-key": 0,
"no-param-reassign": 0,
"no-else-return": 0,
"guard-for-in": 0,
"no-nested-ternary": 0,
"no-case-declarations": 0
"no-shadow": 0,
"arrow-body-style": 0,
"global-require": 0,
"no-unused-expressions": 0,
"no-confusing-arrow": 0,
"import/no-dynamic-require": 0,
"import/no-unresolved": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"react/require-default-props": 0,
"react/forbid-prop-types": 0,
"jsx-a11y/href-no-hash": 0
}
}
}
15 changes: 5 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Include your project-specific ignores in this file
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files

build
.DS_Store
.happypack
dist
*.log
node_modules
ncp-debug.log
npm-debug.log
.idea
yarn.lock
src/config.js
.DS_Store
.vscode
6 changes: 0 additions & 6 deletions .jscsrc

This file was deleted.

24 changes: 8 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
FROM node:7.9.0-alpine
FROM node:9.2.0

# Set a working directory
WORKDIR /usr/src/app

COPY ./build/package.json .
COPY yarn.lock .
RUN curl -o- -L https://yarnpkg.com/install.sh | bash

# Set CORIOLIS_URL
ENV CORIOLIS_URL http://127.0.0.1
COPY ./src/config.sample.js ./src/config.js

# Install Node.js dependencies
RUN yarn install --production --no-progress
WORKDIR /usr/src/app
COPY . .

# Copy application files
COPY ./build .
RUN yarn install --production
RUN yarn build

EXPOSE 3000
ENTRYPOINT [ "node", "server.js" ]

CMD [ "node", "server.js" ]
EXPOSE 3000
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ All files in this repository are licensed as follows. If you contribute
to this repository, it is assumed that you license your contribution
under the same license unless you state otherwise.

All files Copyright (C) 2016 Cloudbase Solutions Srl unless otherwise
All files Copyright (C) 2017 Cloudbase Solutions Srl unless otherwise
specified in the file.

GNU AFFERO GENERAL PUBLIC LICENSE
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
### Install instructions
- [node](https://nodejs.org/en/download/package-manager/) >=6.x and [yarn](https://yarnpkg.com/lang/en/docs/install/) are required
- clone repo
- run `yarn install` to install packages and dependencies
- rename `config.sample.js` to `config.js` in `src` directory
- change the `coriolisUrl` variable to match the coriolis server path
- run `yarn install` or `yarn install --production` to install packages and dependencies for development or production mode
- change the `coriolisUrl` variable in ./src/config.js to match the Coriolis Server path


### Build instructions
- run `yarn build`
- run `node build/server.js` to execute the build
- run `node server.js` to start the server

Your server will be running at http://localhost:3000/

Expand All @@ -23,7 +22,7 @@ Your development server will be running at http://localhost:3000/

This should be used only for development, as it contains live-reload and other development tools.


You can view some of the UIs components in the [Storybook](https://github.com/storybooks/storybook) by running `yarn storybook`

### Apache Configuration

Expand Down Expand Up @@ -51,4 +50,4 @@ ProxyPassMatch ^/identity/(.*)$ http://127.0.0.1:5000/v3/$1
ProxyPassMatch ^/barbican/(.*)$ http://127.0.0.1:9311/$1
ProxyPassMatch ^/coriolis/(.*)$ http://127.0.0.1:7667/v1/$1
ProxyPassMatch ^/((?!identity|coriolis|barbican).*)$ http://127.0.0.1:3000/$1
```
```
Loading

0 comments on commit 0d39a85

Please sign in to comment.