Skip to content

E-commerce made with Next.JS and the Stripe API. Uses SSR, SSG & API routes.

Notifications You must be signed in to change notification settings

leojuriolli7/nextjs-shop

Repository files navigation

NextJS Shop

This project was made with Next.js and consumes the Stripe API. It's an e-commerce with a shopping cart.

It was originally developed for the Rocketseat Ignite Course, for learning Next.js. After finishing the original project, I expanded it by adding:

  1. Shopping cart managed by global state.
  2. Cleaner code & best practices. (Custom hooks, utility functions)
  3. SEO optimizations (Metatags).
  4. Responsive design.

Tech Stack

  • Next.js & Typescript.
  • Stitches for styling (css-in-JS similar to Styled Components)
  • Axios for API requests.
  • Zustand for managing state.

Features

  • Uses SSR for very fast server-side rendered pages.
  • Uses SSG for very optimized static pages.
  • Uses Next.js API routes for Stripe API call on checkout.
  • Shopping cart managed by global state & communicating with the Stripe API. (With logic for duplicated items, maximum limit per user, etc.)
  • Clean code practices (Custom hooks, utility functions, performance optimizations with useCallback, useMemo)
  • Responsive design for all devices.
  • SEO optimizations (metatags for image, description, title, etc.)

Deployment

The project has been deployed on Vercel.

Access: https://nextjs-ignite-shop.vercel.app/

Releases

No releases published

Packages

No packages published

Languages