typescript-express-starter 8.0.2 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/default/.env.development.local +13 -0
- package/lib/default/.env.production.local +13 -0
- package/lib/default/.env.test.local +13 -0
- package/lib/default/.swcrc +1 -0
- package/lib/default/package.json +0 -2
- package/lib/default/src/app.ts +6 -7
- package/lib/default/src/config/index.ts +5 -0
- package/lib/default/src/middlewares/auth.middleware.ts +2 -2
- package/lib/default/src/server.ts +0 -2
- package/lib/default/src/services/auth.service.ts +2 -2
- package/lib/default/src/utils/logger.ts +2 -2
- package/lib/default/tsconfig.json +1 -0
- package/lib/graphql/.env.development.local +20 -0
- package/lib/graphql/.env.production.local +20 -0
- package/lib/graphql/.env.test.local +20 -0
- package/lib/graphql/.swcrc +1 -0
- package/lib/graphql/package.json +0 -2
- package/lib/graphql/src/app.ts +7 -8
- package/lib/graphql/src/config/index.ts +5 -0
- package/lib/graphql/src/databases/index.ts +6 -8
- package/lib/graphql/src/middlewares/auth.middleware.ts +2 -2
- package/lib/graphql/src/repositories/auth.repository.ts +2 -2
- package/lib/graphql/src/server.ts +0 -3
- package/lib/graphql/src/utils/logger.ts +2 -2
- package/lib/graphql/tsconfig.json +1 -0
- package/lib/knex/.env.development.local +20 -0
- package/lib/knex/.env.production.local +20 -0
- package/lib/knex/.env.test.local +20 -0
- package/lib/knex/.swcrc +1 -0
- package/lib/knex/knexfile.ts +6 -10
- package/lib/knex/package.json +0 -2
- package/lib/knex/src/app.ts +6 -7
- package/lib/knex/src/config/index.ts +5 -0
- package/lib/knex/src/databases/index.ts +6 -8
- package/lib/knex/src/middlewares/auth.middleware.ts +2 -2
- package/lib/knex/src/server.ts +0 -2
- package/lib/knex/src/services/auth.service.ts +2 -2
- package/lib/knex/src/utils/logger.ts +2 -2
- package/lib/knex/tsconfig.json +1 -0
- package/lib/mongoose/.env.development.local +18 -0
- package/lib/mongoose/.env.production.local +18 -0
- package/lib/mongoose/.env.test.local +18 -0
- package/lib/mongoose/.swcrc +1 -0
- package/lib/mongoose/package.json +0 -2
- package/lib/mongoose/src/app.ts +6 -7
- package/lib/mongoose/src/config/index.ts +5 -0
- package/lib/mongoose/src/databases/index.ts +2 -5
- package/lib/mongoose/src/middlewares/auth.middleware.ts +2 -2
- package/lib/mongoose/src/server.ts +0 -2
- package/lib/mongoose/src/services/auth.service.ts +2 -2
- package/lib/mongoose/src/utils/logger.ts +2 -2
- package/lib/mongoose/tsconfig.json +1 -0
- package/lib/prisma/.env.development.local +16 -0
- package/lib/prisma/.env.production.local +16 -0
- package/lib/prisma/.env.test.local +16 -0
- package/lib/prisma/.swcrc +1 -0
- package/lib/prisma/package.json +0 -2
- package/lib/prisma/src/app.ts +6 -7
- package/lib/prisma/src/config/index.ts +5 -0
- package/lib/prisma/src/middlewares/auth.middleware.ts +2 -2
- package/lib/prisma/src/server.ts +0 -2
- package/lib/prisma/src/services/auth.service.ts +2 -2
- package/lib/prisma/src/utils/logger.ts +2 -2
- package/lib/prisma/tsconfig.json +1 -0
- package/lib/routing-controllers/.env.development.local +13 -0
- package/lib/routing-controllers/.env.production.local +13 -0
- package/lib/routing-controllers/.env.test.local +13 -0
- package/lib/routing-controllers/.swcrc +1 -0
- package/lib/routing-controllers/package.json +0 -2
- package/lib/routing-controllers/src/app.ts +7 -8
- package/lib/routing-controllers/src/config/index.ts +5 -0
- package/lib/routing-controllers/src/middlewares/auth.middleware.ts +2 -2
- package/lib/routing-controllers/src/server.ts +0 -2
- package/lib/routing-controllers/src/services/auth.service.ts +2 -2
- package/lib/routing-controllers/src/utils/logger.ts +2 -2
- package/lib/routing-controllers/tsconfig.json +1 -0
- package/lib/sequelize/.env.development.local +20 -0
- package/lib/sequelize/.env.production.local +20 -0
- package/lib/sequelize/.env.test.local +20 -0
- package/lib/sequelize/.swcrc +1 -0
- package/lib/sequelize/package.json +0 -2
- package/lib/sequelize/src/app.ts +6 -7
- package/lib/sequelize/src/config/index.ts +5 -0
- package/lib/sequelize/src/databases/index.ts +7 -8
- package/lib/sequelize/src/middlewares/auth.middleware.ts +2 -2
- package/lib/sequelize/src/server.ts +0 -2
- package/lib/sequelize/src/services/auth.service.ts +2 -2
- package/lib/sequelize/src/utils/logger.ts +2 -2
- package/lib/sequelize/tsconfig.json +1 -0
- package/lib/typeorm/.env.development.local +20 -0
- package/lib/typeorm/.env.production.local +20 -0
- package/lib/typeorm/.env.test.local +20 -0
- package/lib/typeorm/.swcrc +1 -0
- package/lib/typeorm/package.json +0 -2
- package/lib/typeorm/src/app.ts +6 -7
- package/lib/typeorm/src/config/index.ts +5 -0
- package/lib/typeorm/src/databases/index.ts +6 -8
- package/lib/typeorm/src/middlewares/auth.middleware.ts +2 -2
- package/lib/typeorm/src/server.ts +0 -2
- package/lib/typeorm/src/services/auth.service.ts +2 -2
- package/lib/typeorm/src/utils/logger.ts +2 -2
- package/lib/typeorm/tsconfig.json +1 -0
- package/package.json +1 -1
- package/lib/default/.env +0 -1
- package/lib/default/src/configs/development.json +0 -12
- package/lib/default/src/configs/production.json +0 -12
- package/lib/default/src/configs/test.json +0 -12
- package/lib/default/src/index.ts +0 -1
- package/lib/graphql/.env +0 -1
- package/lib/graphql/src/configs/development.json +0 -19
- package/lib/graphql/src/configs/production.json +0 -19
- package/lib/graphql/src/configs/test.json +0 -19
- package/lib/graphql/src/index.ts +0 -1
- package/lib/graphql/src/interfaces/db.interface.ts +0 -7
- package/lib/knex/.env +0 -1
- package/lib/knex/src/configs/development.json +0 -19
- package/lib/knex/src/configs/production.json +0 -19
- package/lib/knex/src/configs/test.json +0 -19
- package/lib/knex/src/index.ts +0 -1
- package/lib/knex/src/interfaces/db.interface.ts +0 -7
- package/lib/mongoose/.env +0 -1
- package/lib/mongoose/src/configs/development.json +0 -17
- package/lib/mongoose/src/configs/production.json +0 -17
- package/lib/mongoose/src/configs/test.json +0 -17
- package/lib/mongoose/src/index.ts +0 -1
- package/lib/mongoose/src/interfaces/db.interface.ts +0 -5
- package/lib/prisma/.env +0 -10
- package/lib/prisma/src/configs/development.json +0 -12
- package/lib/prisma/src/configs/production.json +0 -12
- package/lib/prisma/src/configs/test.json +0 -12
- package/lib/prisma/src/index.ts +0 -1
- package/lib/routing-controllers/.env +0 -1
- package/lib/routing-controllers/src/configs/development.json +0 -12
- package/lib/routing-controllers/src/configs/production.json +0 -12
- package/lib/routing-controllers/src/configs/test.json +0 -12
- package/lib/routing-controllers/src/index.ts +0 -1
- package/lib/sequelize/.env +0 -1
- package/lib/sequelize/src/configs/development.json +0 -22
- package/lib/sequelize/src/configs/production.json +0 -22
- package/lib/sequelize/src/configs/test.json +0 -22
- package/lib/sequelize/src/index.ts +0 -1
- package/lib/sequelize/src/interfaces/db.interface.ts +0 -10
- package/lib/typeorm/.env +0 -1
- package/lib/typeorm/src/configs/development.json +0 -18
- package/lib/typeorm/src/configs/production.json +0 -18
- package/lib/typeorm/src/configs/test.json +0 -18
- package/lib/typeorm/src/index.ts +0 -1
- package/lib/typeorm/src/interfaces/db.interface.ts +0 -6
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "test",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"user": "root",
|
|
6
|
-
"password": "password",
|
|
7
|
-
"database": "test",
|
|
8
|
-
"port": 3306
|
|
9
|
-
},
|
|
10
|
-
"secretKey": "secretKey",
|
|
11
|
-
"log": {
|
|
12
|
-
"format": "dev",
|
|
13
|
-
"dir": "../logs"
|
|
14
|
-
},
|
|
15
|
-
"cors": {
|
|
16
|
-
"origin": true,
|
|
17
|
-
"credentials": true
|
|
18
|
-
}
|
|
19
|
-
}
|
package/lib/knex/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
process.env['NODE_CONFIG_DIR'] = __dirname + '/configs';
|
package/lib/mongoose/.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
PORT=3000
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "development",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"database": "test",
|
|
6
|
-
"port": 27017
|
|
7
|
-
},
|
|
8
|
-
"secretKey": "secretKey",
|
|
9
|
-
"log": {
|
|
10
|
-
"format": "dev",
|
|
11
|
-
"dir": "../logs"
|
|
12
|
-
},
|
|
13
|
-
"cors": {
|
|
14
|
-
"origin": true,
|
|
15
|
-
"credentials": true
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "production",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"database": "test",
|
|
6
|
-
"port": 27017
|
|
7
|
-
},
|
|
8
|
-
"secretKey": "secretKey",
|
|
9
|
-
"log": {
|
|
10
|
-
"format": "combined",
|
|
11
|
-
"dir": "../logs"
|
|
12
|
-
},
|
|
13
|
-
"cors": {
|
|
14
|
-
"origin": "your.domain.com",
|
|
15
|
-
"credentials": true
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "test",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"database": "test",
|
|
6
|
-
"port": 27017
|
|
7
|
-
},
|
|
8
|
-
"secretKey": "secretKey",
|
|
9
|
-
"log": {
|
|
10
|
-
"format": "dev",
|
|
11
|
-
"dir": "../logs"
|
|
12
|
-
},
|
|
13
|
-
"cors": {
|
|
14
|
-
"origin": true,
|
|
15
|
-
"credentials": true
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
process.env['NODE_CONFIG_DIR'] = __dirname + '/configs';
|
package/lib/prisma/.env
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
PORT=3000
|
|
2
|
-
|
|
3
|
-
# This text is inserted by `prisma init`:
|
|
4
|
-
# Environment variables declared in this file are automatically made available to Prisma.
|
|
5
|
-
# See the documentation for more detail: https://pris.ly/d/prisma-schema#using-environment-variables
|
|
6
|
-
|
|
7
|
-
# Prisma supports the native connection string format for PostgreSQL, MySQL and SQLite.
|
|
8
|
-
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
|
|
9
|
-
|
|
10
|
-
DATABASE_URL="mysql://root:password@localhost:3306/test"
|
package/lib/prisma/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
process.env['NODE_CONFIG_DIR'] = __dirname + '/configs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
PORT=3000
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
process.env['NODE_CONFIG_DIR'] = __dirname + '/configs';
|
package/lib/sequelize/.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
PORT=3000
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "development",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"user": "root",
|
|
6
|
-
"password": "password",
|
|
7
|
-
"database": "test",
|
|
8
|
-
"pool": {
|
|
9
|
-
"min": 0,
|
|
10
|
-
"max": 5
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"secretKey": "secretKey",
|
|
14
|
-
"log": {
|
|
15
|
-
"format": "dev",
|
|
16
|
-
"dir": "../logs"
|
|
17
|
-
},
|
|
18
|
-
"cors": {
|
|
19
|
-
"origin": true,
|
|
20
|
-
"credentials": true
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "production",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"user": "root",
|
|
6
|
-
"password": "password",
|
|
7
|
-
"database": "test",
|
|
8
|
-
"pool": {
|
|
9
|
-
"min": 0,
|
|
10
|
-
"max": 5
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"secretKey": "secretKey",
|
|
14
|
-
"log": {
|
|
15
|
-
"format": "combined",
|
|
16
|
-
"dir": "../logs"
|
|
17
|
-
},
|
|
18
|
-
"cors": {
|
|
19
|
-
"origin": "your.domain.com",
|
|
20
|
-
"credentials": true
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "test",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"user": "root",
|
|
6
|
-
"password": "password",
|
|
7
|
-
"database": "test",
|
|
8
|
-
"pool": {
|
|
9
|
-
"min": 0,
|
|
10
|
-
"max": 5
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"secretKey": "secretKey",
|
|
14
|
-
"log": {
|
|
15
|
-
"format": "dev",
|
|
16
|
-
"dir": "../logs"
|
|
17
|
-
},
|
|
18
|
-
"cors": {
|
|
19
|
-
"origin": true,
|
|
20
|
-
"credentials": true
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
process.env['NODE_CONFIG_DIR'] = __dirname + '/configs';
|
package/lib/typeorm/.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
PORT=3000
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "development",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"user": "root",
|
|
6
|
-
"password": "password",
|
|
7
|
-
"database": "test"
|
|
8
|
-
},
|
|
9
|
-
"secretKey": "secretKey",
|
|
10
|
-
"log": {
|
|
11
|
-
"format": "dev",
|
|
12
|
-
"dir": "../logs"
|
|
13
|
-
},
|
|
14
|
-
"cors": {
|
|
15
|
-
"origin": true,
|
|
16
|
-
"credentials": true
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "production",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"user": "root",
|
|
6
|
-
"password": "password",
|
|
7
|
-
"database": "test"
|
|
8
|
-
},
|
|
9
|
-
"secretKey": "secretKey",
|
|
10
|
-
"log": {
|
|
11
|
-
"format": "combined",
|
|
12
|
-
"dir": "../logs"
|
|
13
|
-
},
|
|
14
|
-
"cors": {
|
|
15
|
-
"origin": "your.domain.com",
|
|
16
|
-
"credentials": true
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": "test",
|
|
3
|
-
"dbConfig": {
|
|
4
|
-
"host": "localhost",
|
|
5
|
-
"user": "root",
|
|
6
|
-
"password": "password",
|
|
7
|
-
"database": "test"
|
|
8
|
-
},
|
|
9
|
-
"secretKey": "secretKey",
|
|
10
|
-
"log": {
|
|
11
|
-
"format": "dev",
|
|
12
|
-
"dir": "../logs"
|
|
13
|
-
},
|
|
14
|
-
"cors": {
|
|
15
|
-
"origin": true,
|
|
16
|
-
"credentials": true
|
|
17
|
-
}
|
|
18
|
-
}
|
package/lib/typeorm/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
process.env['NODE_CONFIG_DIR'] = __dirname + '/configs';
|