Skip to content

Commit 8734be0

Browse files
Víctor Martínezdevmxhv
andauthored
[Alpha Release] (#11)
* User controller and router (#10) feat: Bookings Schema & Model feat: book & get bookings feat: cancel a book and update booking address feat: User controller and router resolves #1 #2 #3 #4 #5 #7 Co-authored-by: Víctor Martínez <[email protected]> * package-lock Co-authored-by: Mahmoud Mahmoud Abdelfattah <[email protected]>
1 parent 4284ce9 commit 8734be0

30 files changed

+2573
-3185
lines changed

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ MONGO_DB_URL_PRODUCTION=mongodb://docker:docker@mongo:27017/casame?authSource=ad
55
MONGO_DB_URL_DEVELOPMENT=mongodb://docker:docker@mongo:27017/casame?authSource=admin
66
MONGO_DB_URL_TEST=mongodb://docker:docker@mongo:27017/casame?authSource=admin
77
BCRYPT_SALT_ROUNDS=
8-
JWT_SECRET=
9-
STATIC_JWT=
10-
8+
JWT_SECRET_PAYLOAD=
9+
JWT_SECRET_SIGN=
10+
ADMIN_SERVER_URL=
1111
FB_CERT_TYPE=
1212
FB_CERT_PROJECT_ID=
1313
FB_CERT_PRIVATE_KEY_ID=

.github/workflows/nodejs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434
MONGO_DB_URL_DEVELOPMENT: mongodb://docker:docker@mongo:27017/casame?authSource=admin
3535
MONGO_DB_URL_PRODUCTION: mongodb://docker:docker@mongo:27017/casame?authSource=admin
3636
MONGO_DB_URL_TEST: mongodb://docker:docker@mongo:27017/casame?authSource=admin
37-
JWT_SECRET: ${{ secrets.JWT_SECRET }}
37+
ADMIN_SERVER_URL: ${{ secrets.ADMIN_SERVER_URL }}
38+
JWT_SECRET_PAYLOAD: ${{ secrets.JWT_SECRET_PAYLOAD }}
39+
JWT_SECRET_SIGN: ${{ secrets.JWT_SECRET_SIGN }}
3840
FB_CERT_TYPE: ${{ secrets.FB_CERT_TYPE }}
3941
FB_CERT_PROJECT_ID: ${{ secrets.FB_CERT_PROJECT_ID }}
4042
FB_CERT_PRIVATE_KEY_ID: ${{ secrets.FB_CERT_PRIVATE_KEY_ID }}

.vscode/launch.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Jest Current File",
11+
"program": "${workspaceFolder}/node_modules/@angular/cli/bin/ng",
12+
"cwd": "${workspaceFolder}",
13+
"args": [
14+
"test",
15+
"--testPathPattern=${fileBasenameNoExtension}",
16+
"--runInBand"
17+
],
18+
"console": "internalConsole",
19+
"internalConsoleOptions": "neverOpen",
20+
"disableOptimisticBPs": true
21+
},
22+
{
23+
"type": "node",
24+
"request": "launch",
25+
"name": "Jest Current File (using nx)",
26+
"program": "${workspaceFolder}/node_modules/@nrwl/cli/bin/nx.js",
27+
"cwd": "${workspaceFolder}",
28+
"args": [
29+
"test",
30+
"--testPathPattern=${fileBasenameNoExtension}",
31+
"--runInBand"
32+
],
33+
"console": "internalConsole",
34+
"internalConsoleOptions": "neverOpen",
35+
"disableOptimisticBPs": true
36+
},
37+
{
38+
"type": "pwa-node",
39+
"request": "launch",
40+
"name": "Launch Program",
41+
"skipFiles": [
42+
"<node_internals>/**"
43+
],
44+
"program": "${workspaceFolder}/src/index.js"
45+
}
46+
]
47+
}

DockerFile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ WORKDIR /app
66

77
COPY src /app/src/
88
COPY package.json .
9-
COPY jest.config.js .
109
COPY jsconfig.json .
1110
COPY globalConfig.json .
1211

0 commit comments

Comments
 (0)