Skip to content

Commit f52da6a

Browse files
authored
Merge pull request #1 from tak-bro/feature/setup-project
Feature/setup project
2 parents f275a7f + e89f467 commit f52da6a

34 files changed

+5183
-777
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
charset = utf-8
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
end_of_line = lf
11+
12+
[*.md]
13+
max_line_length = off
14+
trim_trailing_whitespace = false

.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# to use on local development
2+
# rename .env.example to .env
3+
NODE_ENV=local
4+
MYSQL_HOST=localhost
5+
MYSQL_USER=user
6+
MYSQL_PASSWORD=password
7+
MYSQL_DATABASE=nestjs-typeorm
8+
MYSQL_PORT=3306

.eslintrc.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
module.exports = {
2-
parser: '@typescript-eslint/parser',
3-
parserOptions: {
4-
project: 'tsconfig.json',
5-
sourceType: 'module',
6-
},
7-
plugins: ['@typescript-eslint/eslint-plugin'],
8-
extends: [
9-
'plugin:@typescript-eslint/eslint-recommended',
10-
'plugin:@typescript-eslint/recommended',
11-
'prettier',
12-
'prettier/@typescript-eslint',
13-
],
14-
root: true,
15-
env: {
16-
node: true,
17-
jest: true,
18-
},
19-
rules: {
20-
'@typescript-eslint/interface-name-prefix': 'off',
21-
'@typescript-eslint/explicit-function-return-type': 'off',
22-
'@typescript-eslint/no-explicit-any': 'off',
23-
},
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
sourceType: 'module',
6+
},
7+
plugins: ['@typescript-eslint/eslint-plugin'],
8+
extends: [
9+
'plugin:@typescript-eslint/eslint-recommended',
10+
'plugin:@typescript-eslint/recommended',
11+
'prettier',
12+
'prettier/@typescript-eslint',
13+
],
14+
root: true,
15+
env: {
16+
node: true,
17+
jest: true,
18+
},
19+
rules: {
20+
'@typescript-eslint/interface-name-prefix': 'off',
21+
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
23+
},
2424
};

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: '3'
2+
services:
3+
mysql:
4+
image: mysql:5.7
5+
container_name: dummy-mysql
6+
ports:
7+
- 3306:3306
8+
volumes:
9+
- ./mysql_data:/var/lib/mysql
10+
environment:
11+
MYSQL_ROOT_PASSWORD: mysql
12+
MYSQL_DATABASE: nestjs-typeorm
13+
MYSQL_USER: user
14+
MYSQL_PASSWORD: password

env-example/dev.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# rename folder env-example to env
2+
ENV:
3+
NODE_ENV: dev
4+
MYSQL_HOST: localhost
5+
MYSQL_USER: user
6+
MYSQL_PASSWORD: password
7+
MYSQL_DATABASE: nestjs-typeorm
8+
MYSQL_PORT: 3306

env-example/prod.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# rename folder env-example to env
2+
ENV:
3+
NODE_ENV: prod
4+
MYSQL_HOST: localhost
5+
MYSQL_USER: user
6+
MYSQL_PASSWORD: password
7+
MYSQL_DATABASE: nestjs-typeorm
8+
MYSQL_PORT: 3306

nest-cli.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"collection": "@nestjs/schematics",
3-
"sourceRoot": "src"
2+
"collection": "@nestjs/schematics",
3+
"sourceRoot": "src"
44
}

0 commit comments

Comments
 (0)