Skip to content

This project is a modern e-commerce platform built with Next.js, TypeScript, GraphQL, and Prisma for seamless shopping experiences. It features user authentication, secure Stripe payments, admin dashboards, and a responsive UI powered by a robust full-stack architecture.

Notifications You must be signed in to change notification settings

hermesdev0131/full-stack-next-typescript-shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full Stack Next TypeScript GraphQL Shop

A modern e-commerce application built with Next.js, TypeScript, GraphQL, and Prisma.

🚀 Tech Stack

Frontend

  • Next.js - React framework for server-rendered applications
  • TypeScript - Type-safe JavaScript
  • Apollo Client - GraphQL client
  • Styled Components - CSS-in-JS styling
  • React Stripe Checkout - Payment processing
  • Jest & Enzyme - Testing framework

Backend

  • GraphQL Yoga - GraphQL server
  • Prisma - Database ORM
  • PostgreSQL - Database
  • JWT - Authentication
  • Stripe - Payment processing
  • Nodemailer - Email functionality

🛠️ Features

  • 🔐 User authentication and authorization
  • 🛍️ Product browsing and searching
  • 🛒 Shopping cart functionality
  • 💳 Secure payment processing with Stripe
  • 📧 Email notifications
  • 📱 Responsive design
  • 🔍 Advanced search capabilities
  • 📊 Admin dashboard

🏗️ Project Structure

├── frontend/           # Next.js frontend application
│   ├── components/    # React components
│   ├── pages/        # Next.js pages
│   ├── static/       # Static assets
│   └── lib/          # Utility functions and configurations
│
└── backend/          # GraphQL backend
    ├── src/         # Source code
    └── prisma/      # Database schema and migrations

🚀 Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • Yarn package manager
  • PostgreSQL database

Installation

  1. Clone the repository:
git clone [repository-url]
cd full-stack-next-typescript-shop
  1. Install dependencies:
# Install frontend dependencies
cd frontend
yarn install

# Install backend dependencies
cd ../backend
yarn install
  1. Set up environment variables:
# In backend directory
cp variables.dev.env.example variables.dev.env
# Update the variables in variables.dev.env with your configuration
  1. Deploy Prisma:
cd backend
yarn prisma:deploy:dev
  1. Start the development servers:
# Start backend (from backend directory)
yarn dev

# Start frontend (from frontend directory)
yarn dev

The application will be available at:

🧪 Testing

# Frontend tests
cd frontend
yarn test

# Backend tests
cd backend
yarn test

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This project is a modern e-commerce platform built with Next.js, TypeScript, GraphQL, and Prisma for seamless shopping experiences. It features user authentication, secure Stripe payments, admin dashboards, and a responsive UI powered by a robust full-stack architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published