-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from fga-eps-mds/dev
Release 1
- Loading branch information
Showing
45 changed files
with
1,467 additions
and
8,608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Versioning and metadata | ||
.git | ||
.gitignore | ||
.dockerignore | ||
|
||
# Build dependencies | ||
dist.do | ||
node_modules | ||
node_module | ||
|
||
# Misc | ||
.eslintrc.js | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
MONGODB_URI='' | ||
EMAIL_USER="" | ||
EMAIL_PASS="" | ||
SENDGRID_API_KEY="" | ||
JWT_SECRET="" | ||
JWT_EXPIRATION="" | ||
GOOGLE_CLIENT_ID="" | ||
GOOGLE_CLIENT_SECRET="" | ||
GOOGLE_CALLBACK_URL="" | ||
MICROSOFT_CLIENT_ID="" | ||
MICROSOFT_CLIENT_SECRET="" | ||
MICROSOFT_TENANT_ID="" | ||
MICROSOFT_CALLBACK_URL="" | ||
FRONTEND_URL="" | ||
# Estas etapas a baixo ainda nao sao necessarias | ||
|
||
# RABBIT_MQ_URI=amqp://admin:admin@rabbitmq:5672 | ||
# RABBIT_MQ_USER_QUEUE=USER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM node:22-alpine | ||
|
||
WORKDIR /app | ||
|
||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
CMD ["npm", "run", "start:dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
services: | ||
user-api: | ||
container_name: user-api | ||
restart: on-failure | ||
build: . | ||
environment: | ||
- NODE_ENV=development | ||
ports: | ||
- 3000:3000 | ||
volumes: | ||
- ./src:/app/src | ||
- ./test:/app/test | ||
env_file: | ||
- .env | ||
# networks: | ||
# - calculus-network | ||
|
||
# networks: | ||
# calculus-network: | ||
# external: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
import type {Config} from 'jest'; | ||
import type { Config } from 'jest'; | ||
|
||
const config: Config = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
reporters: [ | ||
'default', | ||
[ | ||
'jest-sonar', | ||
{ | ||
outputDirectory: 'reports', | ||
outputName: 'sonar-report.xml' | ||
} | ||
] | ||
] | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
reporters: [ | ||
'default', | ||
[ | ||
'jest-sonar', | ||
{ | ||
outputDirectory: 'reports', | ||
outputName: 'sonar-report.xml', | ||
}, | ||
], | ||
], | ||
moduleNameMapper: { | ||
'^src/(.*)$': '<rootDir>/src/$1', | ||
}, | ||
}; | ||
|
||
export default config; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.