Skip to content

100Psycho007/PC-Marketplace

Repository files navigation

PC Marketplace

A modern marketplace for PC components and services built with Next.js, TypeScript, and Prisma.

Features

  • User authentication with JWT
  • User roles (admin, user)
  • Product listings
  • Secure password handling
  • Responsive design

Tech Stack

  • Next.js 14
  • TypeScript
  • Prisma (PostgreSQL)
  • Tailwind CSS
  • JWT Authentication

Getting Started

  1. Clone the repository:
git clone <your-repo-url>
cd pc-marketplace
  1. Install dependencies:
npm install
  1. Set up environment variables: Create a .env file in the root directory with the following variables:
DATABASE_URL="your-postgresql-connection-string"
JWT_SECRET="your-jwt-secret-key"
  1. Set up the database:
npx prisma generate
npx prisma db push
  1. Run the development server:
npm run dev

Open http://localhost:3000 with your browser to see the result.

Deployment

This project is configured for deployment on Vercel. Follow these steps to deploy:

  1. Push your code to GitHub
  2. Connect your GitHub repository to Vercel
  3. Add your environment variables in the Vercel dashboard
  4. Deploy!

License

MIT

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors