Closed arugyani closed 4 months ago
Initialized project using shadcn
template today w/ @prajwalpkn
Dockerized the react app.
FROM node:20 as build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /app/dist .
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
docker build -t shopiq-react . docker run -d -p 8080:80 shopiq-react
Setup Codebase
This ticket will focus on setting up environments, containers, and template code for the frontend and backend services.
The frontend will be built using React, Vite, TypeScript, Docker, TailwindCSS, and shadcn.