Skip to content

Commit

Permalink
feat: fist commit
Browse files Browse the repository at this point in the history
  • Loading branch information
teresalves committed Jul 24, 2022
0 parents commit 793aed9
Show file tree
Hide file tree
Showing 17 changed files with 22,715 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"no-console": 2
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage
node_modules
dist
.DS_Store
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package-lock.json
package.json
coverage
dist
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:14-alpine

EXPOSE 3000

WORKDIR /app

CMD ["node", "dist/src/index.js"]
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
start:
docker compose down
docker-compose up --force-recreate

stop:
docker-compose down

.PHONY: run
41 changes: 41 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: "3.3"
services:
pipedrive-task-service:
build: .
command: npm run dev
ports:
- 3000:3000
- 3001:3001
environment:
NODE_ENV: development
HTTP_PORT: 3000
DEBUG_PORT: 3001
restart: unless-stopped
volumes:
- .:/app/
networks:
- pipedrive
mydb:
container_name: "psql"
image: postgres
environment:
POSTGRES_DB: pipedriveDb
POSTGRES_USER: teresalves
POSTGRES_PASSWORD: example
ports:
- 3300:5432
volumes:
- ~/dbdata:/var/lib/postgresql/data


adminer:
image: adminer
restart: always
ports:
- 8081:8080
depends_on:
- mydb

networks:
pipedrive:
driver: bridge
Loading

0 comments on commit 793aed9

Please sign in to comment.