-
-
Notifications
You must be signed in to change notification settings - Fork 5
feat: Add Docker Compose setup and update dependencies #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This commit introduces a Docker Compose configuration to streamline the setup and development process for the frontend and backend services. Key changes: - Added `backend/Dockerfile` to containerize the backend Node.js application. - Added `frontend/Dockerfile` to containerize the frontend Next.js application. - Created `docker-compose.yml` in the root directory to define and orchestrate the frontend and backend services, configured for development with hot-reloading. - Updated dependencies in `package.json` files for root, frontend, and backend to their latest versions. This included addressing build issues in the frontend arising from major version upgrades (e.g., React 19, Tailwind CSS v4). - Updated `README.md` to remove old manual installation instructions and added a new section detailing how to set up and run the project using Docker Compose. The new setup aims to provide a consistent and reproducible environment for developers. Due to limitations in my current environment, I couldn't complete a full `docker-compose up` test, but I verified individual components (frontend build, backend syntax check, Dockerfile creation).
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds Docker-based setup for frontend and backend services and updates various project dependencies to streamline development and ensure consistency.
- Introduces Dockerfiles and a Docker Compose configuration for both services.
- Bumps dependency versions across root, frontend, and backend package.json files.
- Updates README with new Docker Compose setup instructions.
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
package.json | Bump root concurrently and knip devDependencies |
frontend/tsconfig.json | Expanded "lib" array formatting and added "target" setting |
frontend/src/components/ui/input-otp.tsx | Added inline typing for OTP context with an any cast |
frontend/src/components/ui/button.tsx | Forwarded children and replaced rest-prop spread |
frontend/src/components/theme-provider.tsx | Consolidated next-themes imports into one line |
frontend/postcss.config.mjs | Updated PostCSS plugin key to @tailwindcss/postcss |
frontend/package.json | Bumped numerous frontend dependencies and devDependencies |
frontend/Dockerfile | Added Dockerfile for building and running the Next.js app |
docker-compose.yml | Created Docker Compose config to orchestrate frontend/backend |
backend/package.json | Bumped backend dependencies and devDependencies |
backend/Dockerfile | Added Dockerfile for building and running the Node.js backend |
README.md | Replaced manual install instructions with Docker Compose guide |
) | ||
{...rest} | ||
> | ||
{children as any} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Casting children
to any
reduces type safety; update ButtonProps
to include children?: React.ReactNode
(if not already) and remove the as any
cast.
{children as any} | |
{children} |
Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
This commit introduces a Docker Compose configuration to streamline the setup and development process for the frontend and backend services.
Key changes:
backend/Dockerfile
to containerize the backend Node.js application.frontend/Dockerfile
to containerize the frontend Next.js application.docker-compose.yml
in the root directory to define and orchestrate the frontend and backend services, configured for development with hot-reloading.package.json
files for root, frontend, and backend to their latest versions. This included addressing build issues in the frontend arising from major version upgrades (e.g., React 19, Tailwind CSS v4).README.md
to remove old manual installation instructions and added a new section detailing how to set up and run the project using Docker Compose.The new setup aims to provide a consistent and reproducible environment for developers. Due to limitations in my current environment, I couldn't complete a full
docker-compose up
test, but I verified individual components (frontend build, backend syntax check, Dockerfile creation).