diff --git a/server/config/db.ts b/backend/config/db.ts similarity index 100% rename from server/config/db.ts rename to backend/config/db.ts diff --git a/server/controllers/goalController.ts b/backend/controllers/goalController.ts similarity index 100% rename from server/controllers/goalController.ts rename to backend/controllers/goalController.ts diff --git a/server/controllers/userController.ts b/backend/controllers/userController.ts similarity index 100% rename from server/controllers/userController.ts rename to backend/controllers/userController.ts diff --git a/server/global.d.ts b/backend/global.d.ts similarity index 100% rename from server/global.d.ts rename to backend/global.d.ts diff --git a/server/index.ts b/backend/index.ts similarity index 100% rename from server/index.ts rename to backend/index.ts diff --git a/server/middleware/authMiddleware.ts b/backend/middleware/authMiddleware.ts similarity index 100% rename from server/middleware/authMiddleware.ts rename to backend/middleware/authMiddleware.ts diff --git a/server/middleware/errorMiddleware.ts b/backend/middleware/errorMiddleware.ts similarity index 100% rename from server/middleware/errorMiddleware.ts rename to backend/middleware/errorMiddleware.ts diff --git a/server/models/goalModel.ts b/backend/models/goalModel.ts similarity index 100% rename from server/models/goalModel.ts rename to backend/models/goalModel.ts diff --git a/server/models/userModel.ts b/backend/models/userModel.ts similarity index 100% rename from server/models/userModel.ts rename to backend/models/userModel.ts diff --git a/server/routes/goalRoutes.ts b/backend/routes/goalRoutes.ts similarity index 100% rename from server/routes/goalRoutes.ts rename to backend/routes/goalRoutes.ts diff --git a/server/routes/userRoutes.ts b/backend/routes/userRoutes.ts similarity index 100% rename from server/routes/userRoutes.ts rename to backend/routes/userRoutes.ts diff --git a/client/.gitignore b/frontend/.gitignore similarity index 100% rename from client/.gitignore rename to frontend/.gitignore diff --git a/client/index.html b/frontend/index.html similarity index 100% rename from client/index.html rename to frontend/index.html diff --git a/client/package-lock.json b/frontend/package-lock.json similarity index 100% rename from client/package-lock.json rename to frontend/package-lock.json diff --git a/client/package.json b/frontend/package.json similarity index 100% rename from client/package.json rename to frontend/package.json diff --git a/client/public/react.svg b/frontend/public/react.svg similarity index 100% rename from client/public/react.svg rename to frontend/public/react.svg diff --git a/client/public/vite.svg b/frontend/public/vite.svg similarity index 100% rename from client/public/vite.svg rename to frontend/public/vite.svg diff --git a/client/src/App.css b/frontend/src/App.css similarity index 100% rename from client/src/App.css rename to frontend/src/App.css diff --git a/client/src/App.tsx b/frontend/src/App.tsx similarity index 100% rename from client/src/App.tsx rename to frontend/src/App.tsx diff --git a/client/src/app/store.tsx b/frontend/src/app/store.tsx similarity index 100% rename from client/src/app/store.tsx rename to frontend/src/app/store.tsx diff --git a/client/src/components/GoalForm.tsx b/frontend/src/components/GoalForm.tsx similarity index 100% rename from client/src/components/GoalForm.tsx rename to frontend/src/components/GoalForm.tsx diff --git a/client/src/components/GoalItem.tsx b/frontend/src/components/GoalItem.tsx similarity index 100% rename from client/src/components/GoalItem.tsx rename to frontend/src/components/GoalItem.tsx diff --git a/client/src/components/Header.tsx b/frontend/src/components/Header.tsx similarity index 100% rename from client/src/components/Header.tsx rename to frontend/src/components/Header.tsx diff --git a/client/src/components/Spinner.tsx b/frontend/src/components/Spinner.tsx similarity index 100% rename from client/src/components/Spinner.tsx rename to frontend/src/components/Spinner.tsx diff --git a/client/src/features/auth/authService.tsx b/frontend/src/features/auth/authService.tsx similarity index 100% rename from client/src/features/auth/authService.tsx rename to frontend/src/features/auth/authService.tsx diff --git a/client/src/features/auth/authSlice.tsx b/frontend/src/features/auth/authSlice.tsx similarity index 100% rename from client/src/features/auth/authSlice.tsx rename to frontend/src/features/auth/authSlice.tsx diff --git a/client/src/features/goals/goalService.tsx b/frontend/src/features/goals/goalService.tsx similarity index 100% rename from client/src/features/goals/goalService.tsx rename to frontend/src/features/goals/goalService.tsx diff --git a/client/src/features/goals/goalSlice.tsx b/frontend/src/features/goals/goalSlice.tsx similarity index 100% rename from client/src/features/goals/goalSlice.tsx rename to frontend/src/features/goals/goalSlice.tsx diff --git a/client/src/index.css b/frontend/src/index.css similarity index 100% rename from client/src/index.css rename to frontend/src/index.css diff --git a/client/src/main.tsx b/frontend/src/main.tsx similarity index 100% rename from client/src/main.tsx rename to frontend/src/main.tsx diff --git a/client/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx similarity index 100% rename from client/src/pages/Dashboard.tsx rename to frontend/src/pages/Dashboard.tsx diff --git a/client/src/pages/Login.tsx b/frontend/src/pages/Login.tsx similarity index 100% rename from client/src/pages/Login.tsx rename to frontend/src/pages/Login.tsx diff --git a/client/src/pages/Register.tsx b/frontend/src/pages/Register.tsx similarity index 100% rename from client/src/pages/Register.tsx rename to frontend/src/pages/Register.tsx diff --git a/client/src/vite-env.d.ts b/frontend/src/vite-env.d.ts similarity index 100% rename from client/src/vite-env.d.ts rename to frontend/src/vite-env.d.ts diff --git a/client/tsconfig.json b/frontend/tsconfig.json similarity index 100% rename from client/tsconfig.json rename to frontend/tsconfig.json diff --git a/client/tsconfig.node.json b/frontend/tsconfig.node.json similarity index 100% rename from client/tsconfig.node.json rename to frontend/tsconfig.node.json diff --git a/client/vite.config.ts b/frontend/vite.config.ts similarity index 100% rename from client/vite.config.ts rename to frontend/vite.config.ts diff --git a/package.json b/package.json index e6883c3..fc43e2f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "author": "Anurag Pramanik ", "main": "build/index.js", "scripts": { - "build": "tsc && npm install --prefix client && npm run build --prefix client", + "build": "tsc && npm install --prefix frontend && npm run build --prefix frontend", "dev": "node --watch build/index.js", "start": "node build/index.js", "watch": "tsc -w" diff --git a/tsconfig.json b/tsconfig.json index 76ed6f3..5fdbcce 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,5 +24,5 @@ "baseUrl": "." }, "exclude": ["node_modules"], - "include": ["./server/**/*.ts"] + "include": ["backend/**/*.ts"] }