Full-stack MERN app with role-based auth for artists, buyers, and admins. Includes artwork management, auctions, bidding, orders, and notifications.
Auth uses httpOnly cookies; client sends credentials automatically.
- Node.js 18+
- MongoDB connection string
- Create .env files:
- server/.env
- client/.env
PORT=5002
MONGODB_URI=your_mongodb_connection
JWT_SECRET=your_jwt_secret
CLIENT_ORIGIN=http://localhost:5173
VITE_API_URL=http://localhost:5002/api
- Install dependencies:
npm run install:all
- Run dev servers:
npm run dev
Use /api/auth/register to create accounts with roles: artist, buyer, admin.
- npm run dev:server
- npm run dev:client