diff --git a/.env.example b/.env.example index 109076b46c56cf58afd44de4aa9f8e4278b8d5b1..868b87f2955ec1afda09d776e82f881da873d471 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ PORT = 8080 # DATABASE -DATABASE_URL = postgresql://{user}:{password}@localhost:5432/kinerja?schema=public +DATABASE_URL = postgresql://postgres:postgres@localhost:5432/kinerja?schema=public # CORS ORIGIN = * diff --git a/package-lock.json b/package-lock.json index 2704ae728e0aee6984ae672cdec3a3528b09c0e3..6b78c9d72a18a43ac2eeb99c001e62d3b5c51afb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "bcryptjs": "^2.4.3", "body-parser": "^1.20.2", "cors": "^2.8.5", - "dotenv": "^16.4.4", + "dotenv": "^16.4.5", "ejs": "^3.1.9", "express": "^4.18.2", "helmet": "^7.1.0", diff --git a/package.json b/package.json index 8c2607594f200a511b5c70b3b8783097658fbb2d..b33904053dd97622003cd4942090bc1372556571 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "bcryptjs": "^2.4.3", "body-parser": "^1.20.2", "cors": "^2.8.5", - "dotenv": "^16.4.4", + "dotenv": "^16.4.5", "ejs": "^3.1.9", "express": "^4.18.2", "helmet": "^7.1.0", diff --git a/src/app.ts b/src/app.ts index ee058f66d6fa997d0a8c32aad7fba333a5eba97b..b5839c1b4fd5a96d857a0fabf08464e8ac882cfb 100644 --- a/src/app.ts +++ b/src/app.ts @@ -11,7 +11,7 @@ export class App { constructor() { this.app = express(); this.env = NODE_ENV || 'development'; - this.port = PORT || 3000; + this.port = PORT || 8080; this.initializeMiddlewares(); this.initializeRoutes(); diff --git a/src/views/login.ejs b/src/views/login.ejs index 3e19fef8968a1e748b8054083ba9aa35b40b8bf9..7632682dc6d6fbc62ae5653ba311d975c0dd59e5 100644 --- a/src/views/login.ejs +++ b/src/views/login.ejs @@ -73,46 +73,6 @@ input{ <path d="M1030 1055 l0 -75 75 0 75 0 0 75 0 75 -75 0 -75 0 0 -75z"/> </g> </svg> - <svg version="1.0" xmlns="http://www.w3.org/2000/svg" - width="100pt" height="60pt" viewBox="0 0 706.000000 179.000000" - preserveAspectRatio="xMidYMid meet"> - <g transform="translate(0.000000,179.000000) scale(0.100000,-0.100000)" - fill="#957c54" stroke="none"> - <path d="M59 1724 l-24 -26 0 -608 0 -608 24 -26 c30 -32 87 -35 122 -7 24 19 - 24 21 27 249 l3 230 49 46 c27 25 56 46 63 46 26 0 53 -32 247 -295 106 -143 - 201 -268 212 -277 11 -10 35 -18 54 -18 47 0 74 29 74 79 0 35 -22 69 -220 - 338 -121 164 -220 307 -220 318 0 13 76 96 211 230 116 116 217 222 225 237 - 33 62 3 118 -63 118 -35 0 -51 -14 -303 -265 -275 -274 -276 -274 -317 -242 - -10 7 -13 64 -13 224 0 264 -6 283 -94 283 -22 0 -40 -8 -57 -26z"/> - <path d="M4945 1360 c-59 -9 -140 -48 -190 -91 l-35 -31 0 36 c0 50 -28 76 - -83 76 -32 0 -49 -6 -63 -21 -18 -20 -19 -42 -19 -439 0 -397 1 -419 19 -439 - 14 -16 31 -21 67 -21 79 0 79 -1 79 320 0 170 4 290 11 315 31 112 174 168 - 365 142 57 -8 63 -7 83 14 30 33 27 72 -9 102 -16 14 -42 28 -57 31 -61 11 - -120 13 -168 6z"/> - <path d="M2025 1340 c-19 -21 -20 -40 -23 -434 -2 -445 -2 -449 52 -474 30 - -15 60 -11 91 12 19 14 20 29 25 308 5 319 6 321 67 382 48 49 108 70 198 70 - 127 0 207 -49 245 -150 18 -50 20 -77 20 -307 0 -273 3 -291 54 -315 32 -16 - 69 -9 96 18 19 19 20 34 20 293 0 198 -4 286 -14 323 -32 123 -115 220 -223 - 264 -55 23 -71 24 -323 28 -262 3 -266 3 -285 -18z"/> - <path d="M3633 1350 c-270 -57 -421 -362 -317 -640 102 -270 451 -375 717 - -216 81 49 88 117 14 147 -28 12 -36 10 -96 -23 -36 -20 -93 -42 -127 -49 - -166 -34 -345 74 -378 228 l-7 32 346 3 c400 3 375 -3 375 102 0 170 -84 312 - -224 381 -65 32 -83 37 -167 40 -52 2 -113 0 -136 -5z m196 -146 c83 -24 155 - -112 176 -211 l7 -33 -286 0 c-157 0 -286 4 -286 8 0 57 89 186 151 218 68 35 - 159 42 238 18z"/> - <path d="M6431 1345 c-164 -46 -287 -173 -326 -336 -54 -230 46 -459 242 -552 - l68 -32 269 -3 c149 -2 280 -1 294 3 48 12 55 55 50 315 -4 221 -6 239 -30 - 307 -46 129 -127 217 -254 274 -57 26 -83 32 -164 35 -65 3 -112 -1 -149 -11z - m262 -169 c109 -53 174 -174 165 -309 -8 -125 -64 -214 -166 -264 -47 -23 -70 - -28 -132 -28 -180 1 -304 130 -303 316 1 150 83 265 223 310 51 17 152 5 213 - -25z"/> - <path d="M1362 1327 c-22 -23 -22 -26 -22 -438 0 -404 1 -416 20 -437 31 -33 - 102 -31 129 4 20 26 21 37 21 434 0 397 -1 408 -21 434 -28 35 -95 37 -127 3z"/> - <path d="M5564 1329 c-18 -20 -19 -47 -24 -498 l-5 -476 -25 -45 c-33 -59 -98 - -98 -181 -110 -76 -11 -99 -32 -99 -91 0 -59 26 -79 100 -79 122 0 242 62 308 - 159 68 100 67 85 70 622 3 481 3 486 -18 512 -28 35 -97 38 -126 6z"/> - </g> - </svg> </div> <label for="inputEmail" class="sr-only">Email address</label> <input type="email" name="email" id="inputEmail" class="border-2 border my-2 p-2 rounded-lg" placeholder="Email address" required autofocus>