A monorepo project consisting of a React/Vite Client and an Express/Prisma Server.
- client: Frontend application (React + Vite)
- server: Backend API (Express + Prisma + PostgreSQL)
Run the following command from the root directory to install dependencies for root, client, and server:
npm run install:allNavigate to the server directory, create the .env file, and update your database credentials:
cd server
cp .env.template .envNote: Ensure you have a PostgreSQL database named
finance_trackerrunning. Update theDATABASE_URLin.envif your credentials differ from the default.
Initialize the Prisma Client and push the schema to your database. Run these commands inside the server directory:
# Inside /server directory
npx prisma generate
npx prisma db pushReturn to the root directory and start the project. This command runs both the client (port 5173) and server (port 4000) concurrently:
# Inside root directory
npm run dev- Frontend: http://localhost:5173
- Backend: http://localhost:4000