forked from fga-eps-mds/2021.1-Oraculo-Profile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
59 lines (59 loc) · 2.37 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"name": "2021.1-oraculo-profile",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"scripts": {
"test": "jest --coverage --forceExit",
"db:seeders": "export DATABASE_URL=postgres://oraculo:oraculo123@localhost:5432/oraculo && npx sequelize db:seed:all",
"db:seeders:prod": "export DATABASE_URL=postgres://oraculo:oraculo123@localhost:5432/oraculo && npx sequelize db:seed:all --env production",
"db:migrate": "export DATABASE_URL=postgres://oraculo:oraculo123@localhost:5432/oraculo && sleep 5 && npx sequelize db:migrate",
"db:migrate:prod": "export DATABASE_URL=postgres://oraculo:oraculo123@localhost:5432/oraculo && sleep 5 && npx sequelize db:migrate --env production",
"docker:clean": "sudo docker container rm -f oraculo-banco-profiles oraculo-profiles oraculo-pgadmin-profiles",
"docker:up": "sudo docker-compose up -d --build banco && sleep 5 && sudo docker-compose up -d --build",
"db:up": "sudo docker-compose up -d --build banco",
"all": "yarn run docker:clean && yarn run docker:up && yarn run db:migrate && yarn run db:seeders && yarn run user:create",
"all:prod": "yarn docker:up && npx sequelize db:migrate && npx sequelize db:seed:all",
"start": "node src/index.js",
"start:prod": "node src/index.js",
"user:create": "export DATABASE_URL=postgres://oraculo:oraculo123@localhost:5432/oraculo && node tests/create-admin.js",
"update:all": "sudo docker-compose up -d --build"
},
"repository": {
"type": "git",
"url": "https://github.com/fga-eps-mds/2021.1-Oraculo-Profile.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/fga-eps-mds/2021.1-Oraculo-Profile/issues"
},
"homepage": "https://github.com/fga-eps-mds/2021.1-Oraculo-Profile#readme",
"devDependencies": {
"jest": "^27.1.1",
"jest-sonar-reporter": "^2.0.0",
"supertest": "^6.1.6"
},
"dependencies": {
"bcrypt": "^5.0.1",
"bcryptjs": "^2.4.3",
"cors": "^2.8.5",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"jsonwebtoken": "^8.5.1",
"morgan": "^1.10.0",
"pg": "^8.7.1",
"sequelize": "^6.6.5",
"sequelize-cli": "^6.2.0"
},
"jest": {
"testEnvironment": "node",
"collectCoverage": true,
"testResultsProcessor": "jest-sonar-reporter",
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/",
"tests/create-admin.js"
]
}
}