Skip to content

Commit

Permalink
codechat 🔥 whatsapp-api
Browse files Browse the repository at this point in the history
  • Loading branch information
jrCleber committed Nov 28, 2022
0 parents commit 8bcec21
Show file tree
Hide file tree
Showing 80 changed files with 5,929 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Compiled output
/src

# Dev
/test
/.vs
/.vscode

# Package
/package-lock.json

# Docker
/Docker
/Dockerfile
/docker-compose.yml
/.dockerignore

# Project related
/LICENCE
/README.md
/src
/.eslintignore
/.eslintrc.js
/.pretierrc.js
/.gitignore
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node-modules
/dist
42 changes: 42 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'CommonJS',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:prettier/recommended'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-types': [
'error',
{
extendDefaults: true,
types: {
'{}': false,
Object: false,
},
},
],
'prettier/prettier': ['error', { endOfLine: 'auto' }],
},
};
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# compiled output
/dist
/node_modules

# Logs
logs/**.json
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Package
/yarn.lock
/package-lock.json

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# Prisma
/prisma/migrations

# Project related
/instances/*
!/instances/.gitkeep
/test/
/.env
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 90,
tabWidth: 2,
bracketSameLine: true,
bracketSpacing: true
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.fontSize": 13,
"editor.fontLigatures": true,
"editor.letterSpacing": 0.5,
"editor.smoothScrolling": true,
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll": true
}
}
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:16.17.0

LABEL version="2.0.0" description="Api to control whatsapp features through http requests."
LABEL maintainer="Cleber Wilson" git="https://github.com/jrCleber"
LABEL contact="[email protected]"

RUN apt-get update -y
RUN apt-get upgrade -y

WORKDIR /~/codechat

COPY . .

EXPOSE 8080 443

CMD [ "npm", "run", "start:prod" ]
Loading

0 comments on commit 8bcec21

Please sign in to comment.