├── server └── server.js ├── .eslintignore ├── .prettierrc ├── .prettierignore ├── README.md ├── client └── index.html ├── .eslintrc ├── webpack.dev.js ├── LICENSE ├── webpack.common.js ├── webpack.prod.js ├── package.json └── .gitignore /server/server.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .next 3 | dist 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true 3 | } 4 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | package-lock.json 2 | .next 3 | node_modules/ 4 | dist 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FaaSCompose 2 | Graphical User Interface for Composing FaaS Workflows 3 | -------------------------------------------------------------------------------- /client/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | FaaSCompose 8 | 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | // { 2 | // "extends": "airbnb", 3 | // "root": true 4 | // } 5 | { 6 | "env": { 7 | "browser": true, 8 | "commonjs": true, 9 | "es6": true, 10 | "node": true 11 | }, 12 | "plugins": [ 13 | "react", 14 | "react-hooks" 15 | ], 16 | "extends": [ 17 | "eslint:recommended", 18 | "plugin:react/recommended", 19 | "plugin:prettier/recommended" 20 | ], 21 | "parserOptions": { 22 | "sourceType": "module", 23 | "ecmaVersion": 2018 24 | }, 25 | "settings": { 26 | "react": { 27 | "version": "detect" 28 | } 29 | }, 30 | "rules": { 31 | "linebreak-style": ["error", "unix"], 32 | "react-hooks/rules-of-hooks": "error", 33 | "react-hooks/exhaustive-deps": "warn" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /webpack.dev.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const merge = require('webpack-merge'); 3 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 4 | const common = require('./webpack.common'); 5 | 6 | module.exports = merge(common, { 7 | mode: 'development', 8 | entry: './client/index.js', 9 | output: { 10 | filename: '[name].[contentHash]-bundle.js', 11 | path: path.resolve(__dirname, 'dist'), 12 | }, 13 | plugins: [ 14 | new HtmlWebpackPlugin({ 15 | template: './client/index.html', 16 | }), 17 | ], 18 | module: { 19 | rules: [ 20 | { 21 | test: /\.css$/, 22 | use: ['style-loader', 'css-loader'], 23 | }, 24 | { 25 | test: /\.scss$/, 26 | use: ['style-loader', 'css-loader', 'sass-loader'], 27 | }, 28 | ], 29 | }, 30 | devServer: { 31 | publicPath: '/', 32 | historyApiFallback: true, 33 | proxy: { 34 | '/api': 'http://localhost:3000', 35 | }, 36 | }, 37 | }); 38 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 FaaSCompose 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /webpack.common.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 3 | const Dotenv = require('dotenv-webpack'); 4 | 5 | module.exports = { 6 | entry: { 7 | main: './client/index.js', 8 | // vendor: "./client/vendor.js" 9 | }, 10 | module: { 11 | rules: [ 12 | { 13 | test: /\.html$/, 14 | use: ['html-loader'], 15 | }, 16 | { 17 | test: /\.(svg|png|jpg|gif)$/, 18 | use: { 19 | loader: 'file-loader', 20 | options: { 21 | name: '[name]-[hash].[ext]', 22 | outputPath: 'imgs', 23 | }, 24 | }, 25 | }, 26 | { 27 | test: /\.jsx?/, 28 | exclude: /node_modules/, 29 | use: { 30 | loader: 'babel-loader', 31 | options: { 32 | presets: ['@babel/preset-env', '@babel/preset-react'], 33 | plugins: [ 34 | '@babel/plugin-transform-runtime', 35 | '@babel/plugin-proposal-class-properties', 36 | ], 37 | }, 38 | }, 39 | }, 40 | ], 41 | }, 42 | resolve: { 43 | extensions: ['.js', '.jsx'], 44 | }, 45 | plugins: [new Dotenv()], 46 | }; 47 | -------------------------------------------------------------------------------- /webpack.prod.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const merge = require('webpack-merge'); 3 | const { CleanWebpackPlugin } = require('clean-webpack-plugin'); 4 | const MiniCssExtractPlugin = require('mini-css-extract-plugin'); 5 | const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'); 6 | const TerserPlugin = require('terser-webpack-plugin'); 7 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 8 | const common = require('./webpack.common'); 9 | 10 | module.exports = merge(common, { 11 | mode: 'production', 12 | output: { 13 | filename: '[name].[contentHash]-bundle.js', 14 | path: path.resolve(__dirname, 'dist'), 15 | publicPath: '/dist', 16 | }, 17 | optimization: { 18 | minimizer: [ 19 | new OptimizeCssAssetsPlugin(), 20 | new TerserPlugin(), 21 | new HtmlWebpackPlugin({ 22 | template: './client/index.html', 23 | minify: { 24 | removeAttributeQuotes: true, 25 | collapseWhitespace: true, 26 | removeComments: true, 27 | }, 28 | }), 29 | ], 30 | }, 31 | plugins: [ 32 | new MiniCssExtractPlugin({ 33 | filename: '[name]-[contentHash].css', 34 | }), 35 | new CleanWebpackPlugin(), 36 | ], 37 | module: { 38 | rules: [ 39 | { 40 | // test: /\.scss$/, 41 | test: /\.css$/, 42 | 43 | use: [ 44 | MiniCssExtractPlugin.loader, 45 | 'css-loader', 46 | // "sass-loader" 47 | ], 48 | }, 49 | ], 50 | }, 51 | }); 52 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "faascompose", 3 | "version": "0.0.1", 4 | "description": "Graphical User Interface for Composing FaaS Workflows", 5 | "main": "index.js", 6 | "scripts": { 7 | "lint": "eslint --fix . && echo 'Lint done'", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/oslabs-beta/FaaSCompose.git" 13 | }, 14 | "keywords": [ 15 | "faas", 16 | "compose", 17 | "workflow", 18 | "serverless" 19 | ], 20 | "author": "FaaSCompose", 21 | "license": "MIT", 22 | "bugs": { 23 | "url": "https://github.com/oslabs-beta/FaaSCompose/issues" 24 | }, 25 | "homepage": "https://github.com/oslabs-beta/FaaSCompose#readme", 26 | "devDependencies": { 27 | "@babel/core": "^7.11.1", 28 | "@babel/preset-env": "^7.11.0", 29 | "@babel/preset-react": "^7.10.4", 30 | "babel-loader": "^8.1.0", 31 | "clean-webpack-plugin": "^3.0.0", 32 | "eslint": "^7.6.0", 33 | "eslint-config-prettier": "^6.11.0", 34 | "eslint-plugin-prettier": "^3.1.4", 35 | "eslint-plugin-react": "^7.20.5", 36 | "eslint-plugin-react-hooks": "^4.0.8", 37 | "html-webpack-plugin": "^4.3.0", 38 | "jest": "^26.2.2", 39 | "mini-css-extract-plugin": "^0.9.0", 40 | "nodemon": "^2.0.4", 41 | "optimize-css-assets-webpack-plugin": "^5.0.3", 42 | "prettier": "^2.0.5", 43 | "terser-webpack-plugin": "^4.0.0", 44 | "webpack-merge": "^5.1.1" 45 | }, 46 | "dependencies": { 47 | "dotenv": "^8.2.0", 48 | "dotenv-webpack": "^2.0.0", 49 | "prop-types": "^15.7.2", 50 | "react": "^16.13.1", 51 | "react-dom": "^16.13.1" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | dist 84 | 85 | # Gatsby files 86 | .cache/ 87 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 88 | # https://nextjs.org/blog/next-9-1#public-directory-support 89 | # public 90 | 91 | # vuepress build output 92 | .vuepress/dist 93 | 94 | # Serverless directories 95 | .serverless/ 96 | 97 | # FuseBox cache 98 | .fusebox/ 99 | 100 | # DynamoDB Local files 101 | .dynamodb/ 102 | 103 | # TernJS port file 104 | .tern-port 105 | 106 | .DS_Store 107 | --------------------------------------------------------------------------------