Skip to content

Commit

Permalink
feature: places app terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
ldiego73 committed Jun 11, 2020
1 parent d3d70b5 commit 4af23fe
Show file tree
Hide file tree
Showing 9 changed files with 127 additions and 0 deletions.
12 changes: 12 additions & 0 deletions microservices/places/app/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

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

[*.md]
max_line_length = off
trim_trailing_whitespace = false
5 changes: 5 additions & 0 deletions microservices/places/app/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
API_KEY="<API_KEY_GOOGLE_MAPS>"
NODE_ENV="development"
SERVER_PORT=3001
SERVER_HTTPS_CERT="cert/local.cert"
SERVER_HTTPS_KEY="cert/local.key"
20 changes: 20 additions & 0 deletions microservices/places/app/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
parser: "@typescript-eslint/parser"
parserOptions:
project: "tsconfig.json"
sourceType: "module"
plugins:
- "@typescript-eslint/eslint-plugin"
- "simple-import-sort"
extends:
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- prettier
- prettier/@typescript-eslint
env:
node: true
jest: true
rules:
"@typescript-eslint/interface-name-prefix": 0
"@typescript-eslint/explicit-function-return-type": 0
"@typescript-eslint/no-explicit-any": 0
"simple-import-sort/sort": 2
5 changes: 5 additions & 0 deletions microservices/places/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
reports/
dist/
cert/
.env
7 changes: 7 additions & 0 deletions microservices/places/app/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"endOfLine": "auto",
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
9 changes: 9 additions & 0 deletions microservices/places/app/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2020 Luis Diego

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41 changes: 41 additions & 0 deletions microservices/places/app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "@micro/places",
"version": "1.0.0",
"description": "Places Application",
"author": {
"name": "Luis Diego",
"email": "[email protected]",
"url": "http://github.com/ldiego73"
},
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"clean": "rimraf lib",
"format": "prettier --write \"src/**/*.ts\" --loglevel silent",
"lint": "eslint \"{src,test}/**/*.ts\" -f stylish",
"develop": "ts-node src/index.ts",
"prebuild": "yarn clean && yarn format",
"build": "tsc",
"start": "node dist"
},
"dependencies": {
"@micro/places-console": "^1.0.0",
"@micro/places-graphql": "^1.0.0",
"@micro/places-rest": "^1.0.0",
"@micro/kernel": "^1.0.0"
},
"devDependencies": {
"@types/node": "^14.0.13",
"@typescript-eslint/eslint-plugin": "^3.2.0",
"@typescript-eslint/parser": "^3.2.0",
"eslint": "^7.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-simple-import-sort": "^5.0.3",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-node": "^8.10.2",
"typescript": "^3.9.5"
}
}
10 changes: 10 additions & 0 deletions microservices/places/app/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-disable @typescript-eslint/no-unused-vars */

import { MicroApplication } from "@micro/kernel";
import { PlaceConsoleApplication } from "@micro/places-console";
import { PlaceGraphqlApplication } from "@micro/places-graphql";
import { PlaceRestApplication } from "@micro/places-rest";

const app: MicroApplication = new PlaceRestApplication();

app.start();
18 changes: 18 additions & 0 deletions microservices/places/app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "ES2019",
"module": "CommonJS",
"lib": ["ES2019"],
"declaration": true,
"strict": true,
"esModuleInterop": true,
"noImplicitAny": true,
"resolveJsonModule": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": true,
"outDir": "dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "test", "dist"]
}

0 comments on commit 4af23fe

Please sign in to comment.