-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from RnizereB/module4-task1
Покоритель баз данных
- Loading branch information
Showing
125 changed files
with
5,402 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PORT=3000 | ||
SALT=salt | ||
DB_HOST=127.0.0.1 | ||
DB_NAME=six-cities | ||
DB_USERNAME=Admin | ||
DB_PASSWORD=admin | ||
DB_PORT=27017 | ||
UPLOAD_DIRECTIRY=\upload | ||
JWT_SECRET=secret | ||
HOST=localhost | ||
STATIC_DIRECTORY_PATH=static\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { TokenPayload } from './src/shared/modules/auth/helpers/types.js'; | ||
|
||
declare module 'express-serve-static-core' { | ||
export interface Request { | ||
tokenPayload: TokenPayload; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
services: | ||
db: | ||
image: mongo:4.2 | ||
restart: always | ||
container_name: six-cities_mongodb | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: ${DB_USERNAME} | ||
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD} | ||
ports: | ||
- ${DB_PORT}:27017 | ||
volumes: | ||
- six-cities_data:/data/db | ||
|
||
db_ui: | ||
image: mongo-express:latest | ||
restart: always | ||
container_name: six-cities_mongo_express | ||
ports: | ||
- 8081:8081 | ||
environment: | ||
ME_CONFIG_BASICAUTH_USERNAME: ${DB_USERNAME} | ||
ME_CONFIG_BASICAUTH_PASSWORD: ${DB_PASSWORD} | ||
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_USERNAME} | ||
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_PASSWORD} | ||
ME_CONFIG_MONGODB_URL: mongodb://${DB_USERNAME}:${DB_PASSWORD}@db:${DB_PORT}/ | ||
|
||
volumes: | ||
six-cities_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"watch": [ | ||
"src" | ||
], | ||
"ext": "ts, json", | ||
"exec": "npm run ts ./src/main.rest.ts | pino-pretty --colorize --translateTime SYS:standard" | ||
} |
Oops, something went wrong.