Skip to content

Instantly share code, notes, and snippets.

View gromanev's full-sized avatar
🏠
Working from home

gromanev gromanev

🏠
Working from home
View GitHub Profile
@gromanev
gromanev / InstallEnvironment
Created March 21, 2019 15:17 — forked from inyutin-maxim/InstallEnvironment
Настройка рабочего окружения
Для настройки рабочего окружения выполните в Powershell следующие команды:
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable -n allowGlobalConfirmation
# Development
cinst dotnetcore-sdk dotnetfx git tortoisegit docker-for-windows docker-compose nuget.commandline nugetpackageexplorer vscode nodejs postman docfx heidisql
@gromanev
gromanev / configEnv.service.ts
Last active September 30, 2018 19:10
medium_sample_3
import { Injectable } from '@nestjs/common';
// импортируем библиотеку
import * as nconf from 'nconf';
@Injectable()
export class ConfigEnvService {
public get(): any {
// указываем префикс, по которому будет выборка и извлечение
const prefixFlag = 'MYENV';
@gromanev
gromanev / test.env
Last active September 30, 2018 19:09
medium_sample_1
MYENV__DbSettings__User=test
MYENV__DbSettings__Password=Pass567
@gromanev
gromanev / launch.json
Created September 30, 2018 19:01
medium_sample_4
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Nest Framework",
"args": ["${workspaceFolder}/src/main.ts"],
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"sourceMaps": true,
@gromanev
gromanev / sample.js
Last active September 30, 2018 18:31
medium_sample_2
{
DbSettings: {
User: "test",
Password: "Pass567"
}
}