-
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 #14 from Karlen-ll/module9-task1
- Loading branch information
Showing
112 changed files
with
2,060 additions
and
966 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 |
---|---|---|
@@ -1,15 +1,26 @@ | ||
# Порт нашего api приложения на Node.js | ||
PORT=3100 | ||
|
||
# Соль используемая при хешировании паролей | ||
SALT=hash | ||
|
||
# Docker | ||
# Логин для доступа к базе данных | ||
DB_USER=admin | ||
|
||
# Пароль для доступа к базе данных | ||
DB_PASS=test | ||
|
||
# IP адресс базы данных | ||
DB_HOST=127.0.0.1 | ||
|
||
# Порт базы данных | ||
DB_PORT=27017 | ||
|
||
# Имя базы данных | ||
DB_NAME=six-cities | ||
|
||
# UPLOAD | ||
# Директория для загрузки файлов | ||
UPLOAD_DIRECTORY=/home/node/app/upload | ||
|
||
# Auth | ||
# Секрет используемый при формировании JWT токенов. | ||
JWT_SECRET=secret |
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 |
---|---|---|
|
@@ -13,10 +13,10 @@ | |
"start:rest": "nodemon -L", | ||
"build": "npm run clean && npm run compile", | ||
"cli:help": "npm run ts ./src/main.cli.ts -- --help", | ||
"cli:version": "npm run ts ./src/main.cli.ts --version", | ||
"cli:import": "npm run ts ./src/main.cli.ts --import mocks/mock-data.generated.tsv mongodb://admin:[email protected]:27017/six-cities?authSource=admin salt", | ||
"cli:import:docker": "npm run ts ./src/main.cli.ts --import mocks/mock-data.generated.tsv mongodb://admin:admin@db:27017/six-cities?authSource=admin salt", | ||
"cli:generate": "npm run ts ./src/main.cli.ts --generate 10 mocks/mock-data.generated.tsv http://localhost:3000/api", | ||
"cli:version": "npm run ts ./src/main.cli.ts -- --version", | ||
"cli:import": "npm run ts ./src/main.cli.ts -- --import mocks/mock-data.generated.tsv mongodb://admin:[email protected]:27017/six-cities?authSource=admin salt", | ||
"cli:import:docker": "npm run ts ./src/main.cli.ts -- --import mocks/mock-data.generated.tsv mongodb://admin:admin@db:27017/six-cities?authSource=admin salt", | ||
"cli:generate": "npm run ts ./src/main.cli.ts -- --generate 10 mocks/mock-data.generated.tsv http://localhost:3000/api", | ||
"docker": "docker compose --file ./docker-compose.yml --env-file ./.env --project-name \"six-cities\" up -d", | ||
"mock:server": "json-server ./mocks/mock-server-data.json --port 3000", | ||
"lint": "eslint ./src/ --ext .ts", | ||
|
Oops, something went wrong.