iamjaredwalters / computer-store

Computer store app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Computer Store Demo

Great deals on laptops!

Build With

Getting Started

This repo contains a frontend and a backend app. The frontend source code lives in apps/store and the backend source code lives in apps/api.

Run the following commands from the root of the repo. No need to change directories into each app.

Install project dependencies

pnpm install

Generate prisma client

pnpm --filter api prisma:generate

Start database

docker compose up -d

Run migrations

pnpm run --filter api prisma:migrate

Create .env file for api

cp apps/api/.env.example apps/api/.env

Important

Update the DATABASE_URL environment variable if not using provided docker database

Seed the database

pnpm run --filter api seed

Start frontend and backend dev servers

pnpm run dev

Both apps should now be running and viewable:

About

Computer store app


Languages

Language:TypeScript 89.1%Language:JavaScript 7.5%Language:HTML 2.0%Language:CSS 0.9%Language:Shell 0.5%