Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
anuj-kr-jha committed Jan 22, 2023
0 parents commit 685ad21
Show file tree
Hide file tree
Showing 22 changed files with 1,134 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
DENO_ENV = 'dev'
PORT='4000'
HOST='127.0.0.1'
DB_USER=''
DB_PORT= '27017'
DB_PASSWORD=''
DB_URL='mongodb+srv://epiko:[email protected]/beta?retryWrites=true&w=majority'
REDIS_DB='0'
# REDIS_HOST='127.0.0.1'
# REDIS_PORT='6379'
# REDIS_USERNAME=''
# REDIS_PASSWORD=''
REDIS_HOST='redis-18015.c301.ap-south-1-1.ec2.cloud.redislabs.com'
REDIS_PORT='18015'
REDIS_PASSWORD='k39y54ZB6vf6ne4lMFrR3dW6vt58vBWD'

LOG_LEVEL='silly'
JWT_SECRET='jwt-secret';
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.local
.logs
8 changes: 8 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"default": true,
"MD003": { "style": "atx" },
"MD007": { "indent": 2 },
"MD013": false,
"MD028": false,
"no-hard-tabs": false
}
42 changes: 42 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"port": 9229,
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"request": "launch",
"name": "Launch Program",
"type": "node",
"program": "${workspaceFolder}/src/main.ts",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno", // "/home/evil/.deno/bin/deno",
"runtimeArgs": [
"run",
"--inspect-wait",
"--allow-all"
],
"attachSimplePort": 9229,
// "outputCapture": "std"
// "console": "integratedTerminal"
}
]
}
52 changes: 52 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"deno.enable": true,
"deno.lint": true,
"markdownlint.run": "onSave",

/* inlayHints */
"deno.inlayHints.enumMemberValues.enabled": false,
"deno.inlayHints.functionLikeReturnTypes.enabled": false,
"deno.inlayHints.parameterNames.enabled": "none",
"deno.inlayHints.propertyDeclarationTypes.enabled": false,
"deno.inlayHints.variableTypes.enabled": false,
/* ----- */

"deno.suggest.imports.autoDiscover": true,
"debug.javascript.usePreview": false,

/* editor */
"editor.formatOnSave": true,
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
/* ----- */

/* files */
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"deno.jsonc": false,
"deno.lock": false,
".markdownlint.json": false
},
/* ----- */

/* explorerExclude */
"explorerExclude.backup": {},
/* ----- */

/* cSpell */
"cSpell.words": [
"bullmq",
"datetime",
"deno",
"NOTSET",
"Redlock",
"testdata"
]
/* ----- */
}
129 changes: 129 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "runAndInspect:shell",
"type": "shell",
"command": "deno run --allow-net --allow-write --allow-read --allow-env --inspect ./src/main.ts",
"isBackground": true,
"problemMatcher": ["$deno"]
},
{
"label": "runAndInspect",
"type": "deno",
"command": "run",
"args": [
"--allow-net",
"--allow-write",
"--allow-read",
"--allow-env",
"--inspect",
"./src/main.ts"
],
"problemMatcher": ["$deno"]
},
{
"label": "runAndInspectWait",
"type": "deno",
"command": "run",
"args": [
"--allow-net",
"--allow-write",
"--allow-read",
"--allow-env",
"--inspect-wait",
"./src/main.ts"
],
"problemMatcher": ["$deno"]
},
{
"label": "run",
"type": "deno",
"command": "run",
"args": [
"--allow-net",
"--allow-write",
"--allow-read",
"--allow-env",
"./src/main.ts"
],
"problemMatcher": ["$deno"]
},
{
"label": "runAndWatch",
"type": "deno",
"command": "run",
"args": [
"--allow-net",
"--allow-write",
"--allow-read",
"--allow-env",
"--watch",
"./src/main.ts"
],
"problemMatcher": ["$deno"]
},
{
"label": "fmt",
"type": "deno",
"command": "fmt",
"args": [],
"problemMatcher": ["$deno"]
},
{
"label": "fmtAndWatch",
"type": "deno",
"command": "fmt",
"args": [
"--watch"
],
"problemMatcher": ["$deno"]
},
{
"label": "lint",
"type": "deno",
"command": "lint",
"args": [],
"problemMatcher": ["$deno"]
},
{
"label": "lintAndWatch",
"type": "deno",
"command": "lint",
"args": [
"--watch"
],
"problemMatcher": ["$deno"]
},
{
"label": "lintAndWatch",
"type": "deno",
"command": "lint",
"args": [
"--watch"
],
"problemMatcher": ["$deno"]
},
{
"label": "check",
"type": "deno",
"command": "check",
"args": ["./src/main.ts"],
"problemMatcher": ["$deno"]
},
{
"label": "checkWithReload",
"type": "deno",
"command": "check",
"args": ["-r", "./src/main.ts"],
"problemMatcher": ["$deno"]
},
{
"label": "checkAllWithRemoveAndNPM",
"type": "deno",
"command": "check",
"args": ["--all", "./src/main.ts"],
"problemMatcher": ["$deno"]
}
]
}
13 changes: 13 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"fmt": {
"options": {
"useTabs": true,
"lineWidth": 180,
"indentWidth": 2,
"singleQuote": true,
"proseWrap": "preserve"
}
},
"tasks": {
}
}
Loading

0 comments on commit 685ad21

Please sign in to comment.