Skip to content

Commit

Permalink
Merge pull request #6 from pax-app/devel
Browse files Browse the repository at this point in the history
First Stable Release
  • Loading branch information
lucasdutraf authored Nov 18, 2019
2 parents 2dc24d2 + 05e7cfd commit 24b9546
Show file tree
Hide file tree
Showing 30 changed files with 5,047 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ root = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
trim_trailing_whitespace = true
insert_final_newline = true
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DB_HOST=
DB_PORT=
DB_NAME=
DB_USER=
DB_PASS=
SENTRY_DSN=
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
env: {
es6: true,
node: true,
},
extends: [
'airbnb-base',
'prettier',
],
plugins: ['prettier'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
"prettier/prettier": "error",
"class-methods-use-this": "off",
"no-param-reassign": "off",
"camelcase": "off",
"no-unused-vars": ["error", { "argsIngorePattern": "next" }]
},
};
18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Descrição
Breve descrição das atividades realizadas para conclusão da issue e outros pontos relevantes.

# Issue Relacionada

<!---Linkar todas as issues envolvidas no PR seguindo a estrutura resolve #1, pois quando o PR é aceito todas as issues são fechadas--->
resolve pax-app/Wiki#

# Tipo de Mudanças

- [ ] História de Usuário
- [ ] Historia Técnica
- [ ] Wiki

# Responsáveis pela revisão

@esiofreitas (PO) | @lucasdutraf (PO)
@(Membro do time de desenvolvimento que não esteja envolvido do PR)
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ typings/

# next.js build output
.next

# Folder with nodejs code built by sucrase
dist

#vscode
.vscode
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
sudo: required
language: python
python: 3.8
services:
- docker

before_install:
# install heroku CLI
- wget -qO- https://toolbelt.heroku.com/install.sh | sh
# login to docker registries on heroku
- heroku container:login

script:
# building docker image
- heroku container:push web --app $HEROKU_APPNAME

deploy:
provider: script
script:
# releasing image
heroku container:release web --app $HEROKU_APPNAME
on:
branch: devel
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ RUN npm install

COPY . .

CMD [ "npm", "start"]
CMD [ "/bin/sh", "-c" ,"npm install && npm run-script build && npm start"]

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Pax_Chat
# Chat
<a href="https://codeclimate.com/github/pax-app/Chat/maintainability"><img src="https://api.codeclimate.com/v1/badges/82199d6962eee4d9ecd8/maintainability" /></a>

Microsserviço responsável pelo chat entre cliente-prestador.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3"
version: '3'

services:
chat-service:
Expand All @@ -9,4 +9,4 @@ services:
ports:
- 3001:3001
- 9229:9229
command: npm start
command: /bin/sh -c "npm install && npm audit fix && npm run-script build && npm start"
5 changes: 5 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"execMap": {
"js": "sucrase-node"
}
}
Loading

0 comments on commit 24b9546

Please sign in to comment.