diff --git a/.gitignore b/.gitignore index 3c3629e..0f2afd3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ node_modules +.turbo +out \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0e8040f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +# 1. Build stage +FROM node:22-slim AS builder + +ENV NVM_DIR=/root/.nvm +ENV NODE_VERSION=22 + +# Install dependencies for Node +RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y ca-certificates build-essential + +# Enable corepack and prepare pnpm +RUN corepack enable && corepack prepare pnpm@latest --activate + +WORKDIR /app + +COPY . . + +RUN yes | pnpm install + +RUN pnpm turbo run build --filter=lightsaver_user_client... + +#debugging +RUN ls -al /app/apps/lightsaver_user_client + +# 2. Production stage +FROM node:22-slim + +WORKDIR /app + +COPY --from=builder /app/apps/lightsaver_user_client ./ +COPY --from=builder /app/node_modules ./node_modules +COPY --from=builder /app/packages ./packages + +EXPOSE 3000 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..686c078 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# LightSaver + +## Technologies Used + +- **Next.js**: React-based framework for building server-side rendered and statically generated web applications. +- **GraphQL**: API query language for flexible and efficient data fetching. +- **Express.js**: Fast, unopinionated web framework for Node.js, powering the backend API. +- **PostgreSQL**: Relational database for persistent storage. +- **Docker**: Containerization for consistent deployment. +- **Terraform CDKTF**: Infrastructure as Code (IaC) using the Cloud Development Kit for Terraform. +- **RabbitMQ**: Message broker for asynchronous communication and background processing. + +## Docker Commands + +To build the Docker image: + +```sh +docker build -t lightsaver-app . +``` + +To run the container: + +```sh +docker run -p 3000:3000 lightsaver-app +``` \ No newline at end of file diff --git a/apps/web/.gitignore b/apps/lightsaver_user_client/.gitignore similarity index 100% rename from apps/web/.gitignore rename to apps/lightsaver_user_client/.gitignore diff --git a/apps/web/README.md b/apps/lightsaver_user_client/README.md similarity index 100% rename from apps/web/README.md rename to apps/lightsaver_user_client/README.md diff --git a/apps/web/eslint.config.mjs b/apps/lightsaver_user_client/eslint.config.mjs similarity index 100% rename from apps/web/eslint.config.mjs rename to apps/lightsaver_user_client/eslint.config.mjs diff --git a/apps/web/next.config.ts b/apps/lightsaver_user_client/next.config.ts similarity index 100% rename from apps/web/next.config.ts rename to apps/lightsaver_user_client/next.config.ts diff --git a/apps/web/package.json b/apps/lightsaver_user_client/package.json similarity index 69% rename from apps/web/package.json rename to apps/lightsaver_user_client/package.json index 5f7151a..2ec7285 100644 --- a/apps/web/package.json +++ b/apps/lightsaver_user_client/package.json @@ -1,5 +1,5 @@ { - "name": "web", + "name": "lightsaver_user_client", "version": "0.1.0", "private": true, "scripts": { @@ -9,19 +9,21 @@ "lint": "next lint" }, "dependencies": { + "@apollo/client": "^3.13.8", + "graphql": "^16.11.0", + "next": "15.3.5", "react": "^19.0.0", - "react-dom": "^19.0.0", - "next": "15.3.5" + "react-dom": "^19.0.0" }, "devDependencies": { - "typescript": "^5", + "@eslint/eslintrc": "^3", + "@tailwindcss/postcss": "^4", "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", - "@tailwindcss/postcss": "^4", - "tailwindcss": "^4", "eslint": "^9", "eslint-config-next": "15.3.5", - "@eslint/eslintrc": "^3" + "tailwindcss": "^4", + "typescript": "^5" } } diff --git a/apps/web/postcss.config.mjs b/apps/lightsaver_user_client/postcss.config.mjs similarity index 100% rename from apps/web/postcss.config.mjs rename to apps/lightsaver_user_client/postcss.config.mjs diff --git a/apps/web/public/file.svg b/apps/lightsaver_user_client/public/file.svg similarity index 100% rename from apps/web/public/file.svg rename to apps/lightsaver_user_client/public/file.svg diff --git a/apps/web/public/globe.svg b/apps/lightsaver_user_client/public/globe.svg similarity index 100% rename from apps/web/public/globe.svg rename to apps/lightsaver_user_client/public/globe.svg diff --git a/apps/web/public/next.svg b/apps/lightsaver_user_client/public/next.svg similarity index 100% rename from apps/web/public/next.svg rename to apps/lightsaver_user_client/public/next.svg diff --git a/apps/web/public/vercel.svg b/apps/lightsaver_user_client/public/vercel.svg similarity index 100% rename from apps/web/public/vercel.svg rename to apps/lightsaver_user_client/public/vercel.svg diff --git a/apps/web/public/window.svg b/apps/lightsaver_user_client/public/window.svg similarity index 100% rename from apps/web/public/window.svg rename to apps/lightsaver_user_client/public/window.svg diff --git a/apps/web/src/app/favicon.ico b/apps/lightsaver_user_client/src/app/favicon.ico similarity index 100% rename from apps/web/src/app/favicon.ico rename to apps/lightsaver_user_client/src/app/favicon.ico diff --git a/apps/web/src/app/globals.css b/apps/lightsaver_user_client/src/app/globals.css similarity index 100% rename from apps/web/src/app/globals.css rename to apps/lightsaver_user_client/src/app/globals.css diff --git a/apps/web/src/app/layout.tsx b/apps/lightsaver_user_client/src/app/layout.tsx similarity index 100% rename from apps/web/src/app/layout.tsx rename to apps/lightsaver_user_client/src/app/layout.tsx diff --git a/apps/web/src/app/page.tsx b/apps/lightsaver_user_client/src/app/page.tsx similarity index 100% rename from apps/web/src/app/page.tsx rename to apps/lightsaver_user_client/src/app/page.tsx diff --git a/apps/web/tsconfig.json b/apps/lightsaver_user_client/tsconfig.json similarity index 100% rename from apps/web/tsconfig.json rename to apps/lightsaver_user_client/tsconfig.json diff --git a/package.json b/package.json index 6472e8f..9bab91e 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,10 @@ "description": "", "main": "index.js", "scripts": { + "build": "turbo run build", + "check-types": "tsc --noEmit", "test": "echo \"Error: no test specified\" && exit 1" - }, + }, "keywords": [], "author": "Jason Ross", "license": "ISC", @@ -17,6 +19,8 @@ "lightsaver": "workspace:*" }, "devDependencies": { - "pnpm": "^10.13.1" + "pnpm": "^10.13.1", + "turbo": "^2.5.4", + "typescript": "^5.8.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c589ca5..1931f53 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,9 +15,21 @@ importers: pnpm: specifier: ^10.13.1 version: 10.13.1 + turbo: + specifier: ^2.5.4 + version: 2.5.4 + typescript: + specifier: ^5.8.3 + version: 5.8.3 - apps/web: + apps/lightsaver_user_client: dependencies: + '@apollo/client': + specifier: ^3.13.8 + version: 3.13.8(@types/react@19.1.8)(graphql@16.11.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + graphql: + specifier: ^16.11.0 + version: 16.11.0 next: specifier: 15.3.5 version: 15.3.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0) @@ -66,6 +78,24 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} + '@apollo/client@3.13.8': + resolution: {integrity: sha512-YM9lQpm0VfVco4DSyKooHS/fDTiKQcCHfxr7i3iL6a0kP/jNO5+4NFK6vtRDxaYisd5BrwOZHLJpPBnvRVpKPg==} + peerDependencies: + graphql: ^15.0.0 || ^16.0.0 + graphql-ws: ^5.5.5 || ^6.0.3 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc + subscriptions-transport-ws: ^0.9.0 || ^0.11.0 + peerDependenciesMeta: + graphql-ws: + optional: true + react: + optional: true + react-dom: + optional: true + subscriptions-transport-ws: + optional: true + '@emnapi/core@1.4.4': resolution: {integrity: sha512-A9CnAbC6ARNMKcIcrQwq6HeHCjpcBZ5wSx4U01WXCqEKlrzB9F9315WDNHkrs2xbx7YjjSxbUYxuN6EQzpcY2g==} @@ -113,6 +143,11 @@ packages: resolution: {integrity: sha512-1+WqvgNMhmlAambTvT3KPtCl/Ibr68VldY2XY40SL1CE0ZXiakFR/cbTspaF5HsnpDMvcYYoJHfl4980NBjGag==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@graphql-typed-document-node/core@3.2.0': + resolution: {integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==} + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + '@humanfs/core@0.19.1': resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} engines: {node: '>=18.18.0'} @@ -622,6 +657,22 @@ packages: cpu: [x64] os: [win32] + '@wry/caches@1.0.1': + resolution: {integrity: sha512-bXuaUNLVVkD20wcGBWRyo7j9N3TxePEWFZj2Y+r9OoUzfqmavM84+mFykRicNsBqatba5JLay1t48wxaXaWnlA==} + engines: {node: '>=8'} + + '@wry/context@0.7.4': + resolution: {integrity: sha512-jmT7Sb4ZQWI5iyu3lobQxICu2nC/vbUhP0vIdd6tHC9PTfenmRmuIFqktc6GH9cgi+ZHnsLWPvfSvc4DrYmKiQ==} + engines: {node: '>=8'} + + '@wry/equality@0.5.7': + resolution: {integrity: sha512-BRFORjsTuQv5gxcXsuDXx6oGRhuVsEGwZy6LOzRRfgu+eSfxbhUQ9L9YtSEIuIjY/o7g3iWFjrc5eSY1GXP2Dw==} + engines: {node: '>=8'} + + '@wry/trie@0.5.0': + resolution: {integrity: sha512-FNoYzHawTMk/6KMQoEG5O4PuioX19UbwdQKF44yw0nLfOypfQdjtfZzo/UIJWAJ23sNIFbD1Ug9lbaDGMwbqQA==} + engines: {node: '>=8'} + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -1084,6 +1135,16 @@ packages: graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + graphql-tag@2.12.6: + resolution: {integrity: sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==} + engines: {node: '>=10'} + peerDependencies: + graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + + graphql@16.11.0: + resolution: {integrity: sha512-mS1lbMsxgQj6hge1XZ6p7GPhbrtFwUFYi3wRzXAC/FmYnyXMTvvI3td3rjmQ2u8ewXueaSvRPWaEcgVVOT9Jnw==} + engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} + has-bigints@1.1.0: resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==} engines: {node: '>= 0.4'} @@ -1111,6 +1172,9 @@ packages: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} + hoist-non-react-statics@3.3.2: + resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} + ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -1471,6 +1535,9 @@ packages: resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==} engines: {node: '>= 0.4'} + optimism@0.18.1: + resolution: {integrity: sha512-mLXNwWPa9dgFyDqkNi54sjDyNJ9/fTI6WGBLgnXku1vdKY/jovHfZT5r+aiVeFFLOz+foPNOm5YJ4mqgld2GBQ==} + optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} @@ -1564,6 +1631,17 @@ packages: resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==} engines: {node: '>= 0.4'} + rehackt@0.1.0: + resolution: {integrity: sha512-7kRDOuLHB87D/JESKxQoRwv4DzbIdwkAGQ7p6QKGdVlY1IZheUnVhlk/4UZlNUVxdAXpyxikE3URsG067ybVzw==} + peerDependencies: + '@types/react': '*' + react: '*' + peerDependenciesMeta: + '@types/react': + optional: true + react: + optional: true + resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -1721,6 +1799,10 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + symbol-observable@4.0.0: + resolution: {integrity: sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==} + engines: {node: '>=0.10'} + tailwindcss@4.1.11: resolution: {integrity: sha512-2E9TBm6MDD/xKYe+dvJZAmg3yxIEDNRc0jwlNyDg/4Fil2QcSLjFKGVff0lAf1jjeaArlG/M75Ey/EYr/OJtBA==} @@ -1746,12 +1828,50 @@ packages: peerDependencies: typescript: '>=4.8.4' + ts-invariant@0.10.3: + resolution: {integrity: sha512-uivwYcQaxAucv1CzRp2n/QdYPo4ILf9VXgH19zEIjFx2EJufV16P0JtJVpYHy89DItG6Kwj2oIUjrcK5au+4tQ==} + engines: {node: '>=8'} + tsconfig-paths@3.15.0: resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + turbo-darwin-64@2.5.4: + resolution: {integrity: sha512-ah6YnH2dErojhFooxEzmvsoZQTMImaruZhFPfMKPBq8sb+hALRdvBNLqfc8NWlZq576FkfRZ/MSi4SHvVFT9PQ==} + cpu: [x64] + os: [darwin] + + turbo-darwin-arm64@2.5.4: + resolution: {integrity: sha512-2+Nx6LAyuXw2MdXb7pxqle3MYignLvS7OwtsP9SgtSBaMlnNlxl9BovzqdYAgkUW3AsYiQMJ/wBRb7d+xemM5A==} + cpu: [arm64] + os: [darwin] + + turbo-linux-64@2.5.4: + resolution: {integrity: sha512-5May2kjWbc8w4XxswGAl74GZ5eM4Gr6IiroqdLhXeXyfvWEdm2mFYCSWOzz0/z5cAgqyGidF1jt1qzUR8hTmOA==} + cpu: [x64] + os: [linux] + + turbo-linux-arm64@2.5.4: + resolution: {integrity: sha512-/2yqFaS3TbfxV3P5yG2JUI79P7OUQKOUvAnx4MV9Bdz6jqHsHwc9WZPpO4QseQm+NvmgY6ICORnoVPODxGUiJg==} + cpu: [arm64] + os: [linux] + + turbo-windows-64@2.5.4: + resolution: {integrity: sha512-EQUO4SmaCDhO6zYohxIjJpOKRN3wlfU7jMAj3CgcyTPvQR/UFLEKAYHqJOnJtymbQmiiM/ihX6c6W6Uq0yC7mA==} + cpu: [x64] + os: [win32] + + turbo-windows-arm64@2.5.4: + resolution: {integrity: sha512-oQ8RrK1VS8lrxkLriotFq+PiF7iiGgkZtfLKF4DDKsmdbPo0O9R2mQxm7jHLuXraRCuIQDWMIw6dpcr7Iykf4A==} + cpu: [arm64] + os: [win32] + + turbo@2.5.4: + resolution: {integrity: sha512-kc8ZibdRcuWUG1pbYSBFWqmIjynlD8Lp7IB6U3vIzvOv9VG+6Sp8bzyeBWE3Oi8XV5KsQrznyRTBPvrf99E4mA==} + hasBin: true + type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -1823,6 +1943,12 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} + zen-observable-ts@1.2.5: + resolution: {integrity: sha512-QZWQekv6iB72Naeake9hS1KxHlotfRpe+WGNbNx5/ta+R3DNjVO2bswf63gXlWDcs+EMd7XY8HfVQyP1X6T4Zg==} + + zen-observable@0.8.15: + resolution: {integrity: sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==} + snapshots: '@alloc/quick-lru@5.2.0': {} @@ -1832,6 +1958,28 @@ snapshots: '@jridgewell/gen-mapping': 0.3.12 '@jridgewell/trace-mapping': 0.3.29 + '@apollo/client@3.13.8(@types/react@19.1.8)(graphql@16.11.0)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': + dependencies: + '@graphql-typed-document-node/core': 3.2.0(graphql@16.11.0) + '@wry/caches': 1.0.1 + '@wry/equality': 0.5.7 + '@wry/trie': 0.5.0 + graphql: 16.11.0 + graphql-tag: 2.12.6(graphql@16.11.0) + hoist-non-react-statics: 3.3.2 + optimism: 0.18.1 + prop-types: 15.8.1 + rehackt: 0.1.0(@types/react@19.1.8)(react@19.1.0) + symbol-observable: 4.0.0 + ts-invariant: 0.10.3 + tslib: 2.8.1 + zen-observable-ts: 1.2.5 + optionalDependencies: + react: 19.1.0 + react-dom: 19.1.0(react@19.1.0) + transitivePeerDependencies: + - '@types/react' + '@emnapi/core@1.4.4': dependencies: '@emnapi/wasi-threads': 1.0.3 @@ -1892,6 +2040,10 @@ snapshots: '@eslint/core': 0.15.1 levn: 0.4.1 + '@graphql-typed-document-node/core@3.2.0(graphql@16.11.0)': + dependencies: + graphql: 16.11.0 + '@humanfs/core@0.19.1': {} '@humanfs/node@0.16.6': @@ -2316,6 +2468,22 @@ snapshots: '@unrs/resolver-binding-win32-x64-msvc@1.11.1': optional: true + '@wry/caches@1.0.1': + dependencies: + tslib: 2.8.1 + + '@wry/context@0.7.4': + dependencies: + tslib: 2.8.1 + + '@wry/equality@0.5.7': + dependencies: + tslib: 2.8.1 + + '@wry/trie@0.5.0': + dependencies: + tslib: 2.8.1 + acorn-jsx@5.3.2(acorn@8.15.0): dependencies: acorn: 8.15.0 @@ -2970,6 +3138,13 @@ snapshots: graphemer@1.4.0: {} + graphql-tag@2.12.6(graphql@16.11.0): + dependencies: + graphql: 16.11.0 + tslib: 2.8.1 + + graphql@16.11.0: {} + has-bigints@1.1.0: {} has-flag@4.0.0: {} @@ -2992,6 +3167,10 @@ snapshots: dependencies: function-bind: 1.1.2 + hoist-non-react-statics@3.3.2: + dependencies: + react-is: 16.13.1 + ignore@5.3.2: {} ignore@7.0.5: {} @@ -3337,6 +3516,13 @@ snapshots: define-properties: 1.2.1 es-object-atoms: 1.1.1 + optimism@0.18.1: + dependencies: + '@wry/caches': 1.0.1 + '@wry/context': 0.7.4 + '@wry/trie': 0.5.0 + tslib: 2.8.1 + optionator@0.9.4: dependencies: deep-is: 0.1.4 @@ -3433,6 +3619,11 @@ snapshots: gopd: 1.2.0 set-function-name: 2.0.2 + rehackt@0.1.0(@types/react@19.1.8)(react@19.1.0): + optionalDependencies: + '@types/react': 19.1.8 + react: 19.1.0 + resolve-from@4.0.0: {} resolve-pkg-maps@1.0.0: {} @@ -3647,6 +3838,8 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} + symbol-observable@4.0.0: {} + tailwindcss@4.1.11: {} tapable@2.2.2: {} @@ -3673,6 +3866,10 @@ snapshots: dependencies: typescript: 5.8.3 + ts-invariant@0.10.3: + dependencies: + tslib: 2.8.1 + tsconfig-paths@3.15.0: dependencies: '@types/json5': 0.0.29 @@ -3682,6 +3879,33 @@ snapshots: tslib@2.8.1: {} + turbo-darwin-64@2.5.4: + optional: true + + turbo-darwin-arm64@2.5.4: + optional: true + + turbo-linux-64@2.5.4: + optional: true + + turbo-linux-arm64@2.5.4: + optional: true + + turbo-windows-64@2.5.4: + optional: true + + turbo-windows-arm64@2.5.4: + optional: true + + turbo@2.5.4: + optionalDependencies: + turbo-darwin-64: 2.5.4 + turbo-darwin-arm64: 2.5.4 + turbo-linux-64: 2.5.4 + turbo-linux-arm64: 2.5.4 + turbo-windows-64: 2.5.4 + turbo-windows-arm64: 2.5.4 + type-check@0.4.0: dependencies: prelude-ls: 1.2.1 @@ -3808,3 +4032,9 @@ snapshots: yallist@5.0.0: {} yocto-queue@0.1.0: {} + + zen-observable-ts@1.2.5: + dependencies: + zen-observable: 0.8.15 + + zen-observable@0.8.15: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4a42429..b9c3ad5 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,5 +1,6 @@ packages: - apps/* + - services/* - packages/* onlyBuiltDependencies: diff --git a/services/package.json b/services/package.json new file mode 100644 index 0000000..eb0381a --- /dev/null +++ b/services/package.json @@ -0,0 +1,25 @@ +{ + "name": "api", + "version": "1.0.0", + "description": "", + "main": "src/index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "packageManager": "pnpm@10.13.1", + "dependencies": { + "apollo-server-express": "^3.13.0", + "express": "^5.1.0", + "graphql": "^16.11.0" + }, + "devDependencies": { + "@types/express": "^5.0.3", + "@types/node": "^20.19.7", + "nodemon": "^3.1.10", + "ts-node": "^10.9.2", + "typescript": "^5.8.3" + } +} diff --git a/services/src/auth/index.ts b/services/src/auth/index.ts new file mode 100644 index 0000000..de88829 --- /dev/null +++ b/services/src/auth/index.ts @@ -0,0 +1 @@ +console.log("Hello World!"); \ No newline at end of file diff --git a/turbo.json b/turbo.json new file mode 100644 index 0000000..556c423 --- /dev/null +++ b/turbo.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://turborepo.com/schema.json", + "tasks": { + "build": { + "dependsOn": ["^build"], + "outputs": [".next/**", "!.next/cache/**"] + }, + "check-types": { + "dependsOn": ["^check-types"] + }, + "dev": { + "persistent": true, + "cache": false + } + } +} \ No newline at end of file