arugyani / shopIQ

LLM powered high-consideration research tool for UTD senior project
1 stars 0 forks source link

frontend: setup code base #10

Closed arugyani closed 4 months ago

arugyani commented 4 months ago

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.

arugyani commented 4 months ago

2/26/2024

Initialized project using shadcn template today w/ @prajwalpkn

Notes + Questions

prajwalpkn commented 4 months ago

02/27/2024

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;"]
prajwalpkn commented 4 months ago

docker build -t shopiq-react . docker run -d -p 8080:80 shopiq-react