This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
2,641 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
}, | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint", "@typescript-eslint/tslint", "import"], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier/@typescript-eslint", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:import/typescript", | ||
], | ||
rules: { | ||
"max-classes-per-file": ["error", 1], | ||
"no-console": 0, | ||
"no-new": 0, | ||
"no-nested-ternary": 0, | ||
"no-unused-vars": ["error", { varsIgnorePattern: "^_" }], | ||
"no-underscore-dangle": 0, | ||
"array-callback-return": 1, | ||
"no-return-assign": 0, | ||
"no-param-reassign": 0, | ||
"global-require": 0, | ||
// TS | ||
"@typescript-eslint/no-var-requires": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/no-empty-function": 0, | ||
"@typescript-eslint/generic-type-naming": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/prefer-namespace-keyword": 0, | ||
"@typescript-eslint/no-non-null-assertion": 0, | ||
"@typescript-eslint/no-use-before-define": 0, | ||
// IMPORT | ||
"import/prefer-default-export": 0, | ||
"import/no-dynamic-require": 0, | ||
"import/named": 2, | ||
"import/namespace": 2, | ||
"import/default": 2, | ||
"import/export": 2, | ||
"import/no-unresolved": 0, | ||
"import/order": [ | ||
"error", | ||
{ | ||
"newlines-between": "always", | ||
groups: [ | ||
"external", | ||
"internal", | ||
"index", | ||
"sibling", | ||
"parent", | ||
"builtin", | ||
], | ||
}, | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
devDependencies: true, | ||
optionalDependencies: false, | ||
peerDependencies: false, | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# 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 | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://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/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
web_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# yarn v2 | ||
|
||
.yarn/cache | ||
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.pnp.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"printWidth": 120, | ||
"singleQuote": true, | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CREATE DATABASE accounts; | ||
CREATE DATABASE products; | ||
CREATE DATABASE orders; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
version: "3.7" | ||
services: | ||
db: | ||
image: postgres:9.6 | ||
container_name: db | ||
ports: | ||
- "4005:4005" | ||
volumes: | ||
- ./_dbscript:/docker-entrypoint-initdb.d:delegated | ||
environment: | ||
POSTGRES_USER: admin | ||
POSTGRES_PASSWORD: admin | ||
networks: | ||
- local | ||
|
||
nats: | ||
image: nats:latest | ||
container_name: nats | ||
ports: | ||
- "4222:4222" | ||
networks: | ||
- local | ||
|
||
accounting: | ||
build: ./packages/accounts | ||
container_name: accounts | ||
ports: | ||
- "3000:3000" | ||
networks: | ||
- local | ||
volumes: | ||
- ./packages/accounts:/usr/src/app:delegated | ||
depends_on: | ||
- db | ||
command: "npm start" | ||
env_file: | ||
- ./.env | ||
|
||
billing: | ||
build: ./packages/billing | ||
container_name: billing | ||
ports: | ||
- "3001:3000" | ||
networks: | ||
- local | ||
volumes: | ||
- ./packages/billing:/usr/src/app:delegated | ||
command: "npm start" | ||
env_file: | ||
- ./.env | ||
|
||
ordering: | ||
build: ./packages/ordering | ||
container_name: ordering | ||
ports: | ||
- "3002:3000" | ||
networks: | ||
- local | ||
volumes: | ||
- ./packages/ordering:/usr/src/app:delegated | ||
depends_on: | ||
- db | ||
command: "npm start" | ||
env_file: | ||
- ./.env | ||
|
||
graphql: | ||
build: ./packages/graphql | ||
container_name: graphql | ||
ports: | ||
- "3002:3000" | ||
networks: | ||
- local | ||
volumes: | ||
- ./packages/graphql:/usr/src/app:delegated | ||
depends_on: | ||
- accounting | ||
- billing | ||
- ordering | ||
command: "npm start" | ||
env_file: | ||
- ./.env | ||
|
||
networks: | ||
local: | ||
driver: bridge |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.