Skip to content

Commit 0d39a85

Browse files
Sergiu Micleaalexpilotti
authored andcommitted
Coriolis with Atomic design implementation
Includes: Alt Flux data flow framework Jest testing framework Storybook Styled Components
1 parent d63c8ea commit 0d39a85

619 files changed

Lines changed: 28768 additions & 23124 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.babelrc

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,44 @@
11
{
22
"presets": [
3-
"es2015",
4-
"stage-0",
3+
[
4+
"env",
5+
{
6+
"modules": false
7+
}
8+
],
59
"react",
6-
"babel-preset-jest"
10+
"stage-1"
711
],
812
"plugins": [
9-
"transform-runtime"
10-
]
11-
}
13+
"react-hot-loader/babel"
14+
],
15+
"env": {
16+
"development": {
17+
"plugins": [
18+
"transform-es2015-modules-commonjs",
19+
[
20+
"styled-components",
21+
{
22+
"minify": false
23+
}
24+
]
25+
]
26+
},
27+
"test": {
28+
"plugins": [
29+
"transform-es2015-modules-commonjs"
30+
]
31+
},
32+
"production": {
33+
"plugins": [
34+
"transform-react-remove-prop-types",
35+
[
36+
"styled-components",
37+
{
38+
"displayName": false
39+
}
40+
]
41+
]
42+
}
43+
}
44+
}

.csslintrc

Lines changed: 0 additions & 19 deletions
This file was deleted.

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
# Change these settings to your own preference
10+
indent_style = space
11+
indent_size = 2
12+
13+
# We recommend you to keep these unchanged
14+
end_of_line = lf
15+
charset = utf-8
16+
trim_trailing_whitespace = true
17+
insert_final_newline = true
18+
19+
[*.md]
20+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
src/__tests__
1+
server.js

.eslintrc

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,48 @@
11
{
22
"parser": "babel-eslint",
3-
"extends": "airbnb",
3+
"extends": [
4+
"airbnb"
5+
],
6+
"env": {
7+
"browser": true,
8+
"jest": true
9+
},
410
"globals": {
5-
"__DEV__": true
11+
"__DEV__": true,
12+
"__PROD__": true,
13+
"__DEBUG__": true,
14+
"__COVERAGE__": true,
15+
"__BASENAME__": true
16+
},
17+
"settings": {
18+
"import/resolver": {
19+
"webpack": {
20+
"config": "webpack.config.js"
21+
}
22+
}
623
},
724
"rules": {
8-
"no-confusing-arrow": 0,
9-
"react/jsx-quotes": 0,
10-
"jsx-quotes": [2, "prefer-double"],
11-
"comma-dangle": 0,
12-
"semi": 0,
13-
"quotes": 0,
14-
"eqeqeq": 0,
25+
"semi": [2, "never"],
26+
"comma-dangle": [2, "always-multiline"],
27+
"class-methods-use-this": 0,
28+
"max-len": 0,
1529
"prefer-const": 0,
16-
"max-len": ["error", 120],
17-
"react/jsx-no-bind": 0,
18-
"prefer-template": 0,
19-
"object-shorthand": 0,
30+
"arrow-parens": 0,
31+
"react/prefer-stateless-function": 0,
32+
"react/no-array-index-key": 0,
2033
"no-param-reassign": 0,
21-
"no-else-return": 0,
22-
"guard-for-in": 0,
23-
"no-nested-ternary": 0,
24-
"no-case-declarations": 0
34+
"no-shadow": 0,
35+
"arrow-body-style": 0,
36+
"global-require": 0,
37+
"no-unused-expressions": 0,
38+
"no-confusing-arrow": 0,
39+
"import/no-dynamic-require": 0,
40+
"import/no-unresolved": 0,
41+
"import/extensions": 0,
42+
"import/no-extraneous-dependencies": 0,
43+
"import/prefer-default-export": 0,
44+
"react/require-default-props": 0,
45+
"react/forbid-prop-types": 0,
46+
"jsx-a11y/href-no-hash": 0
2547
}
26-
}
48+
}

.gitignore

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
# Include your project-specific ignores in this file
2-
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
3-
4-
build
1+
.DS_Store
2+
.happypack
3+
dist
4+
*.log
55
node_modules
6-
ncp-debug.log
7-
npm-debug.log
8-
.idea
9-
yarn.lock
10-
src/config.js
11-
.DS_Store
6+
.vscode

.jscsrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

Dockerfile

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
FROM node:7.9.0-alpine
1+
FROM node:9.2.0
22

3-
# Set a working directory
4-
WORKDIR /usr/src/app
5-
6-
COPY ./build/package.json .
7-
COPY yarn.lock .
3+
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
84

9-
# Set CORIOLIS_URL
10-
ENV CORIOLIS_URL http://127.0.0.1
11-
COPY ./src/config.sample.js ./src/config.js
12-
13-
# Install Node.js dependencies
14-
RUN yarn install --production --no-progress
5+
WORKDIR /usr/src/app
6+
COPY . .
157

16-
# Copy application files
17-
COPY ./build .
8+
RUN yarn install --production
9+
RUN yarn build
1810

19-
EXPOSE 3000
11+
ENTRYPOINT [ "node", "server.js" ]
2012

21-
CMD [ "node", "server.js" ]
13+
EXPOSE 3000

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ All files in this repository are licensed as follows. If you contribute
22
to this repository, it is assumed that you license your contribution
33
under the same license unless you state otherwise.
44

5-
All files Copyright (C) 2016 Cloudbase Solutions Srl unless otherwise
5+
All files Copyright (C) 2017 Cloudbase Solutions Srl unless otherwise
66
specified in the file.
77

88
GNU AFFERO GENERAL PUBLIC LICENSE

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
### Install instructions
44
- [node](https://nodejs.org/en/download/package-manager/) >=6.x and [yarn](https://yarnpkg.com/lang/en/docs/install/) are required
55
- clone repo
6-
- run `yarn install` to install packages and dependencies
7-
- rename `config.sample.js` to `config.js` in `src` directory
8-
- change the `coriolisUrl` variable to match the coriolis server path
6+
- run `yarn install` or `yarn install --production` to install packages and dependencies for development or production mode
7+
- change the `coriolisUrl` variable in ./src/config.js to match the Coriolis Server path
98

109

1110
### Build instructions
1211
- run `yarn build`
13-
- run `node build/server.js` to execute the build
12+
- run `node server.js` to start the server
1413

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

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

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

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

2827
### Apache Configuration
2928

@@ -51,4 +50,4 @@ ProxyPassMatch ^/identity/(.*)$ http://127.0.0.1:5000/v3/$1
5150
ProxyPassMatch ^/barbican/(.*)$ http://127.0.0.1:9311/$1
5251
ProxyPassMatch ^/coriolis/(.*)$ http://127.0.0.1:7667/v1/$1
5352
ProxyPassMatch ^/((?!identity|coriolis|barbican).*)$ http://127.0.0.1:3000/$1
54-
```
53+
```

0 commit comments

Comments
 (0)