Compare commits

..

6 Commits

Author SHA1 Message Date
b1b3fd3c07
chore(build): add gitignore file
Include .gitignore to prevent tracking of environment files and node modules. This helps in keeping the repository clean and secure by excluding unnecessary and sensitive files.
2024-10-17 17:03:46 +02:00
e0f7aad49b
feat(config): add biome.json for project configuration
Create a new biome.json file to configure imports, VCS, linter, formatter, and JavaScript parser settings for the project. This setup standardizes code quality and formatting rules across the codebase.
2024-10-17 17:03:38 +02:00
bb5313b403
feat(service): add Docker Compose configuration for database
Introduce a docker-compose.yml file to manage the PostgreSQL database container. This setup includes environment variables, port configuration, and volume mapping for persistent data storage.
2024-10-17 17:03:28 +02:00
1259bbcccc
chore(build): add GitToolBox project settings file
Introduce git_toolbox_prj.xml to configure commit message validation settings in the project. This ensures consistency and adherence to commit message standards.
2024-10-17 17:03:18 +02:00
f2989496cb
chore(build): add package.json and pnpm lockfile
Created initial `package.json` with dependencies and devDependencies for a NestJS project. Added `pnpm-lock.yaml` to ensure consistent package versions.
2024-10-17 17:03:01 +02:00
e550055448
chore(idea): add JetBrains project configuration files
Add XML configuration files for JetBrains IDE, including module setup, VCS mappings, Git blame settings, and Discord integration. This will help maintain consistent project settings for all developers using JetBrains IDEs.
2024-10-17 17:02:46 +02:00
13 changed files with 6071 additions and 0 deletions

0
.env.example Normal file
View File

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
/node_modules/

8
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

7
.idea/discord.xml generated Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="ASK" />
<option name="description" value="" />
</component>
</project>

6
.idea/git_toolbox_blame.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GitToolBoxBlameSettings">
<option name="version" value="2" />
</component>
</project>

15
.idea/git_toolbox_prj.xml generated Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GitToolBoxProjectSettings">
<option name="commitMessageIssueKeyValidationOverride">
<BoolValueOverride>
<option name="enabled" value="true" />
</BoolValueOverride>
</option>
<option name="commitMessageValidationEnabledOverride">
<BoolValueOverride>
<option name="enabled" value="true" />
</BoolValueOverride>
</option>
</component>
</project>

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/template-nestjs.iml" filepath="$PROJECT_DIR$/.idea/template-nestjs.iml" />
</modules>
</component>
</project>

12
.idea/template-nestjs.iml generated Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

12
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CommitMessageInspectionProfile">
<profile version="1.0">
<inspection_tool class="CommitFormat" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="CommitNamingConvention" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

44
biome.json Normal file
View File

@ -0,0 +1,44 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"include": [
"./apps/**/src/**/*.ts"
]
},
"vcs": {
"enabled": true,
"clientKind": "git"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"performance": {
"recommended": true,
"noDelete": "off"
},
"suspicious": {
"noExplicitAny": "warn"
},
"complexity": {
"useLiteralKeys": "off"
},
"style": {
"useImportType": "off"
}
}
},
"formatter": {
"indentStyle": "tab",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
}
}

16
docker-compose.yml Normal file
View File

@ -0,0 +1,16 @@
version: '3'
services:
database:
container_name: "app-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/'

45
package.json Normal file
View File

@ -0,0 +1,45 @@
{
"name": "template-nestjs",
"version": "1.0.0",
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@nestjs/common": "^10.4.5",
"@nestjs/config": "^3.2.3",
"@nestjs/core": "^10.4.5",
"@nestjs/mapped-types": "^2.0.5",
"@nestjs/platform-express": "^10.4.5",
"@nestjs/swagger": "^7.4.2",
"@nestjs/throttler": "^6.2.1",
"argon2": "^0.41.1",
"drizzle-kit": "^0.26.2",
"drizzle-orm": "^0.35.1",
"drizzle-zod": "^0.5.1",
"express": "^4.21.1",
"helmet": "^8.0.0",
"jose": "^5.9.4",
"magic-bytes.js": "^1.10.0",
"postgres": "^3.4.4",
"ts-mockito": "^2.6.1"
},
"devDependencies": {
"@biomejs/biome": "^1.9.3",
"@nestjs/schematics": "^10.2.1",
"@nestjs/testing": "^10.4.5",
"@swc-node/register": "^1.10.9",
"@swc/cli": "0.4.1-nightly.20240914",
"@swc/core": "^1.7.36",
"@swc/helpers": "^0.5.13",
"@types/jest": "^29.5.13",
"@types/node": "^22.7.6",
"jest": "^29.7.0",
"jest-environment-node": "^29.7.0",
"ts-jest": "^29.2.5",
"typescript": "^5.6.3"
}
}

5896
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff