A modern marketplace for PC components and services built with Next.js, TypeScript, and Prisma.
- User authentication with JWT
- User roles (admin, user)
- Product listings
- Secure password handling
- Responsive design
- Next.js 14
- TypeScript
- Prisma (PostgreSQL)
- Tailwind CSS
- JWT Authentication
- Clone the repository:
git clone <your-repo-url>
cd pc-marketplace- Install dependencies:
npm install- Set up environment variables:
Create a
.envfile in the root directory with the following variables:
DATABASE_URL="your-postgresql-connection-string"
JWT_SECRET="your-jwt-secret-key"- Set up the database:
npx prisma generate
npx prisma db push- Run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
This project is configured for deployment on Vercel. Follow these steps to deploy:
- Push your code to GitHub
- Connect your GitHub repository to Vercel
- Add your environment variables in the Vercel dashboard
- Deploy!
MIT