From b92d1a17b7064c87e400e79030fd7d1ade51cff0 Mon Sep 17 00:00:00 2001 From: mehmet Date: Sat, 4 May 2024 11:08:40 +0200 Subject: [PATCH] feat: forego to start the backend and frontend together --- Procfile.local | 2 ++ backend/combined.log | 1 + backend/error.log | 1 + package.json | 15 +++++++++++++++ 4 files changed, 19 insertions(+) create mode 100644 Procfile.local create mode 100644 package.json diff --git a/Procfile.local b/Procfile.local new file mode 100644 index 00000000..c9ed5c69 --- /dev/null +++ b/Procfile.local @@ -0,0 +1,2 @@ +frontend: npm run local:frontend +backend: npm run local:backend diff --git a/backend/combined.log b/backend/combined.log index 760ec23e..99d54e7d 100644 --- a/backend/combined.log +++ b/backend/combined.log @@ -10,3 +10,4 @@ {"level":"error","message":"Missing environment variables: REFRESH_TOKEN_SECRET_KEY, ACCESS_TOKEN_SECRET_KEY"} {"level":"error","message":"No token, authorization denied","timestamp":"2024-04-06 13:20:38"} {"level":"error","message":"No token, authorization denied","timestamp":"2024-04-06 13:20:40"} +{"level":"error","message":"No token, authorization denied","timestamp":"2024-05-04 11:07:36"} diff --git a/backend/error.log b/backend/error.log index 760ec23e..99d54e7d 100644 --- a/backend/error.log +++ b/backend/error.log @@ -10,3 +10,4 @@ {"level":"error","message":"Missing environment variables: REFRESH_TOKEN_SECRET_KEY, ACCESS_TOKEN_SECRET_KEY"} {"level":"error","message":"No token, authorization denied","timestamp":"2024-04-06 13:20:38"} {"level":"error","message":"No token, authorization denied","timestamp":"2024-04-06 13:20:40"} +{"level":"error","message":"No token, authorization denied","timestamp":"2024-05-04 11:07:36"} diff --git a/package.json b/package.json new file mode 100644 index 00000000..8ce529c7 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "kitapkurdu", + "version": "1.0.0", + "description": "
\"Shorturl\"", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "local": "forego start -f Procfile.local", + "local:frontend": "PORT=3000 npm --prefix ./client start", + "local:backend": "PORT=5000 npm --prefix ./backend start" + }, + "keywords": [], + "author": "", + "license": "ISC" +}