feat: Add initial configuration files
New configuration files have been added for TypeScript, Biome, Nest CLI, Docker-compose, and environment variables. This setup includes TypeScript compiler options, biome schema settings, database container configuration and more. Additionally, a .gitignore file is added to exclude unnecessary files from the git repository.
This commit is contained in:
parent
2e649e6a6d
commit
411fb981ef
13
.env.example
Normal file
13
.env.example
Normal file
@ -0,0 +1,13 @@
|
||||
POSTGRES_DATABASE=explorer
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=e5NvXK@NV5Q3XQMiwLMj@hppAaVdVXKvCFqhFPN@fiQE_zZdb&bh@VJmf333nNqC
|
||||
POSTGRES_HOST=localhost
|
||||
POSTGRES_PORT=15432
|
||||
|
||||
APP_PORT=3333
|
||||
APP_TOKEN_SECRET=2RkNMP&7Zfywapqdkxck@hS5&LKqTn&22HftTKwLxmSQ@5_AU@E&sWLLishAoRCJ
|
||||
APP_HASH_SECRET=S7kKsmtszHQ2E9&3jQkTM&3gjDfbxbXiVWzhLYP9KTSbfZ7Cwd_a2TitXsNgwDW4
|
||||
APP_CYPHER_SECRET=Pz4Mhb2sEty92Ur4grHWfELhnFnz52nYFW4EUZi44j5Qo7@XYU5AjHwNP4aeY_xV
|
||||
FRONTEND_ORIGIN=localhost
|
||||
SIGNUP_ENABLE=true
|
||||
REGISTER_CODE=36303630
|
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/node_modules/
|
||||
/drizzle/
|
||||
/dist/
|
||||
.backup.zip
|
||||
.temp
|
36
biome.json
Normal file
36
biome.json
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
},
|
||||
"files": {
|
||||
"include": [
|
||||
"./src/**/*.ts"
|
||||
]
|
||||
},
|
||||
"vcs": {
|
||||
"enabled": true,
|
||||
"clientKind": "git"
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"performance": {
|
||||
"recommended": true,
|
||||
"noDelete": "off"
|
||||
},
|
||||
"suspicious": {
|
||||
"noExplicitAny": "warn"
|
||||
},
|
||||
"complexity": {
|
||||
"useLiteralKeys": "off"
|
||||
}
|
||||
}
|
||||
},
|
||||
"formatter": {
|
||||
"indentStyle": "tab",
|
||||
"indentWidth": 2,
|
||||
"lineWidth": 80
|
||||
}
|
||||
}
|
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
@ -0,0 +1,16 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
database:
|
||||
container_name: "b08-db"
|
||||
image: 'postgres:latest'
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${POSTGRES_PORT}:5432"
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: ${POSTGRES_DATABASE}
|
||||
volumes:
|
||||
- './db-data/:/var/lib/postgresql/data/'
|
8
nest-cli.json
Normal file
8
nest-cli.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/nest-cli",
|
||||
"collection": "@nestjs/schematics",
|
||||
"sourceRoot": "src",
|
||||
"compilerOptions": {
|
||||
"deleteOutDir": true
|
||||
}
|
||||
}
|
4
tsconfig.build.json
Normal file
4
tsconfig.build.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
|
||||
}
|
21
tsconfig.json
Normal file
21
tsconfig.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"declaration": true,
|
||||
"removeComments": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"target": "ES2021",
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
"baseUrl": "./",
|
||||
"incremental": true,
|
||||
"skipLibCheck": true,
|
||||
"strictNullChecks": false,
|
||||
"noImplicitAny": false,
|
||||
"strictBindCallApply": false,
|
||||
"forceConsistentCasingInFileNames": false,
|
||||
"noFallthroughCasesInSwitch": false
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user