From 5d416a6dacd263e4bb6ff604790d12badbaa7883 Mon Sep 17 00:00:00 2001 From: kunal Dugar Date: Sun, 13 Oct 2024 22:19:13 +0530 Subject: [PATCH] added secrets to gihub --- .github/workflows/nodejs.yaml | 10 +++++++++- frontend/package-lock.json | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yaml b/.github/workflows/nodejs.yaml index ec464b0..8a22b42 100644 --- a/.github/workflows/nodejs.yaml +++ b/.github/workflows/nodejs.yaml @@ -38,8 +38,16 @@ jobs: - name: Build frontend run: npm run build --prefix frontend - # Step 5: Run backend server (development) + # Step 5: Run backend server (development) - name: Start backend server + env: + MONGO_URI: ${{ secrets.MONGO_URI }} + PORT: ${{ secrets.PORT }} + JWT_SECRET: ${{ secrets.JWT_SECRET }} + CLOUDINARY_CLOUD_NAME: ${{ secrets.CLOUDINARY_CLOUD_NAME }} + CLOUDINARY_API_KEY: ${{ secrets.CLOUDINARY_API_KEY }} + CLOUDINARY_API_SECRET: ${{ secrets.CLOUDINARY_API_SECRET }} + NODE_ENV: development run: npm run dev # Optional: Add a step to run tests (if you have test scripts) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 0847ac2..959d94f 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -39,10 +39,13 @@ "cloudinary": "^2.2.0", "cookie-parser": "^1.4.6", "cors": "^2.8.5", + "cross-env": "^7.0.3", "dotenv": "^16.4.5", "express": "^4.19.2", "jsonwebtoken": "^9.0.2", - "mongoose": "^8.4.4" + "mongoose": "^8.4.4", + "swagger-jsdoc": "^6.2.8", + "swagger-ui-express": "^5.0.1" }, "devDependencies": { "nodemon": "^3.1.4"